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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 666563005: Set up Mojo connection when RenderFrameHost is reused for new RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to reviews Created 6 years, 2 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: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index ea159cbad61aa1a20db7c2ed4eef0541e98df009..b1669f212c5c6736eac8522e9a6f5fe8c752d297 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -363,6 +363,14 @@ class CONTENT_EXPORT RenderFrameHostImpl
const CommonNavigationParams& common_params,
const CommitNavigationParams& commit_params);
+ // Sets up the Mojo connection between this instance and its associated render
+ // frame if it has not yet been set up.
+ void SetUpMojoIfNeeded();
+
+ // Tears down the browser-side state relating to the Mojo connection between
+ // this instance and its associated render frame.
+ void InvalidateMojoConnection();
+
protected:
friend class RenderFrameHostFactory;
@@ -558,7 +566,7 @@ class CONTENT_EXPORT RenderFrameHostImpl
// SiteInstance.
scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_;
- ServiceRegistryImpl service_registry_;
+ scoped_ptr<ServiceRegistryImpl> service_registry_;
#if defined(OS_ANDROID)
scoped_ptr<ServiceRegistryAndroid> service_registry_android_;

Powered by Google App Engine
This is Rietveld 408576698