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

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: Rebase 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 dbce027a974dc5122c61a0b02567e6b324cf4e97..d82e5c9bd8685c497ddd946522a05bc949a5f3e4 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -355,6 +355,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();
nasko 2014/10/23 15:59:08 nit: I don't see "IfNeeded" suffix adding much use
Charlie Reis 2014/10/23 18:38:31 I would be ok with keeping the IfNeeded part. Not
blundell 2014/10/24 14:42:54 Personally I like the |IfNeeded()|. Contrast this
+
+ // 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;
@@ -549,7 +557,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