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

Unified Diff: trunk/src/content/browser/web_contents/web_contents_impl.h

Issue 271863005: Revert 268939 "Pass RenderFrameHost to WebContentObservers' mess..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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
Index: trunk/src/content/browser/web_contents/web_contents_impl.h
===================================================================
--- trunk/src/content/browser/web_contents/web_contents_impl.h (revision 269074)
+++ trunk/src/content/browser/web_contents/web_contents_impl.h (working copy)
@@ -49,6 +49,7 @@
class DateTimeChooserAndroid;
class DownloadItem;
class InterstitialPageImpl;
+class JavaBridgeDispatcherHostManager;
class JavaScriptDialogManager;
class PowerSaveBlocker;
class RenderViewHost;
@@ -119,6 +120,10 @@
SavePackage* save_package() const { return save_package_.get(); }
#if defined(OS_ANDROID)
+ JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const {
+ return java_bridge_dispatcher_host_manager_.get();
+ }
+
// In Android WebView, the RenderView needs created even there is no
// navigation entry, this allows Android WebViews to use
// javascript: URLs that load into the DOMWindow before the first page
@@ -727,6 +732,7 @@
void OnOpenDateTimeDialog(
const ViewHostMsg_DateTimeDialogValue_Params& value);
+ void OnJavaBridgeGetChannelHandle(IPC::Message* reply_msg);
#endif
void OnPepperPluginHung(int plugin_child_id,
const base::FilePath& path,
@@ -921,6 +927,13 @@
// Manages the frame tree of the page and process swaps in each node.
FrameTree frame_tree_;
+#if defined(OS_ANDROID)
+ // Manages injecting Java objects into all RenderViewHosts associated with
+ // this WebContentsImpl.
+ scoped_ptr<JavaBridgeDispatcherHostManager>
+ java_bridge_dispatcher_host_manager_;
+#endif
+
// SavePackage, lazily created.
scoped_refptr<SavePackage> save_package_;

Powered by Google App Engine
This is Rietveld 408576698