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

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

Issue 72233002: Move RenderViewHostManager from WebContents to FrameTreeNode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 7 years, 1 month 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/browser/site_per_process_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 7e648d7570b8fae6cca743927afdba6fff1aa2a9..8bb90413d48daee87bc401c963ef01426ec5e3a3 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -760,6 +760,10 @@ class CONTENT_EXPORT WebContentsImpl
void SetEncoding(const std::string& encoding);
+ // TODO(creis): This should take in a FrameTreeNode to know which node's
+ // render manager to return. For now, we just return the root's.
+ RenderViewHostManager* GetRenderManager() const;
+
RenderViewHostImpl* GetRenderViewHostImpl();
// Removes browser plugin embedder if there is one.
@@ -811,7 +815,7 @@ class CONTENT_EXPORT WebContentsImpl
DestructionObservers destruction_observers_;
// A list of observers notified when page state changes. Weak references.
- // This MUST be listed above render_manager_ since at destruction time the
+ // This MUST be listed above frame_tree_ since at destruction time the
// latter might cause RenderViewHost's destructor to call us and we might use
// the observer list then.
ObserverList<WebContentsObserver> observers_;
@@ -833,10 +837,7 @@ class CONTENT_EXPORT WebContentsImpl
PowerSaveBlockerMap;
PowerSaveBlockerMap power_save_blockers_;
- // Manages creation and swapping of render views.
- RenderViewHostManager render_manager_;
-
- // The frame tree structure of the current page.
+ // Manages the frame tree of the page and process swaps in each node.
FrameTree frame_tree_;
#if defined(OS_ANDROID)
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698