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

Unified Diff: content/public/browser/web_contents.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/android/java_interfaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 163a2adf05dee23d5161e4a2747cf49e3e49b88a..37b3bf2b5d759f6de4423e4e09434e85d4206541 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -46,6 +46,10 @@ namespace net {
struct LoadStateWithParam;
}
+namespace shell {
+class InterfaceProvider;
+}
+
namespace content {
class BrowserContext;
@@ -727,6 +731,11 @@ class WebContents : public PageNavigator,
// TODO(paulmeyer): This process will change slightly once multi-process
// find-in-page is implemented. This comment should be updated at that time.
virtual void RequestFindMatchRects(int current_version) = 0;
+
+ // Returns an InterfaceProvider for Java-implemented interfaces that are
+ // scoped to this WebContents. This provides access to interfaces implemented
+ // in Java in the browser process to C++ code in the browser process.
+ virtual shell::InterfaceProvider* GetJavaInterfaces() = 0;
#elif defined(OS_MACOSX)
// Allowing other views disables optimizations which assume that only a single
// WebContents is present.
« no previous file with comments | « content/public/browser/android/java_interfaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698