1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
content / public / browser / android / browser_context_handle.h [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_ANDROID_BROWSER_CONTEXT_HANDLE_H_
#define CONTENT_PUBLIC_BROWSER_ANDROID_BROWSER_CONTEXT_HANDLE_H_
#include <jni.h>
#include "base/android/scoped_java_ref.h"
#include "content/common/content_export.h"
namespace content {
class BrowserContext;
// Returns a pointer to the native BrowserContext wrapped by the given Java
// BrowserContextHandle reference.
CONTENT_EXPORT content::BrowserContext* BrowserContextFromJavaHandle(
const base::android::JavaRef<jobject>& jhandle);
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_ANDROID_BROWSER_CONTEXT_HANDLE_H_