1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24

android_webview / browser / aw_user_agent_metadata.h [blame]

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ANDROID_WEBVIEW_BROWSER_AW_USER_AGENT_METADATA_H_
#define ANDROID_WEBVIEW_BROWSER_AW_USER_AGENT_METADATA_H_

#include "base/android/jni_weak_ref.h"
#include "base/android/scoped_java_ref.h"
#include "third_party/blink/public/common/user_agent/user_agent_metadata.h"

namespace android_webview {

blink::UserAgentMetadata FromJavaAwUserAgentMetadata(
    JNIEnv* env,
    const base::android::JavaRef<jobject>& java_ua_metadata);

base::android::ScopedJavaLocalRef<jobject> ToJavaAwUserAgentMetadata(
    JNIEnv* env,
    const blink::UserAgentMetadata& ua_meta_data);

}  // namespace android_webview

#endif  // ANDROID_WEBVIEW_BROWSER_AW_USER_AGENT_METADATA_H_