Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1545)

Unified Diff: content/public/browser/android/java_interfaces.h

Issue 2217813003: Add global and per-WebContents java InterfaceRegistries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java-interface-registry
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/java_interfaces.h
diff --git a/content/public/browser/android/java_interfaces.h b/content/public/browser/android/java_interfaces.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa4973d34a915f44cee0b89feb10d4481a252307
--- /dev/null
+++ b/content/public/browser/android/java_interfaces.h
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// 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_JAVA_INTERFACES_H_
+#define CONTENT_PUBLIC_BROWSER_ANDROID_JAVA_INTERFACES_H_
+
+#include "content/common/content_export.h"
+
+namespace shell {
+class InterfaceProvider;
+}
+
+namespace content {
+
+// Returns an InterfaceProvider for global Java-implemented interfaces.
+// This provides access to interfaces implemented in Java in the browser process
+// to C++ code in the browser process. This and the returned InterfaceProvider
+// may only be used on the UI thread.
+CONTENT_EXPORT shell::InterfaceProvider* GetGlobalJavaInterfaces();
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_JAVA_INTERFACES_H_
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698