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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 30323002: [DRAFT] Create RenderFrameHostManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 268
269 // Implementation of PageNavigator. 269 // Implementation of PageNavigator.
270 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; 270 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE;
271 271
272 // Implementation of IPC::Sender. 272 // Implementation of IPC::Sender.
273 virtual bool Send(IPC::Message* message) OVERRIDE; 273 virtual bool Send(IPC::Message* message) OVERRIDE;
274 274
275 // RenderViewHostDelegate ---------------------------------------------------- 275 // RenderViewHostDelegate ----------------------------------------------------
276 276
277 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; 277 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
278 virtual RenderViewHostDelegate::RendererManagement* 278 // TODO(creis): This should take in a FrameTreeNode to know which node's
279 GetRendererManagementDelegate() OVERRIDE; 279 // render manager to return. For now, we just return the root's.
280 virtual RenderViewHostManager* GetRenderManager() const OVERRIDE;
280 virtual bool OnMessageReceived(RenderViewHost* render_view_host, 281 virtual bool OnMessageReceived(RenderViewHost* render_view_host,
281 const IPC::Message& message) OVERRIDE; 282 const IPC::Message& message) OVERRIDE;
282 virtual const GURL& GetURL() const OVERRIDE; 283 virtual const GURL& GetURL() const OVERRIDE;
283 virtual const GURL& GetVisibleURL() const OVERRIDE; 284 virtual const GURL& GetVisibleURL() const OVERRIDE;
284 virtual const GURL& GetLastCommittedURL() const OVERRIDE; 285 virtual const GURL& GetLastCommittedURL() const OVERRIDE;
285 virtual WebContents* GetAsWebContents() OVERRIDE; 286 virtual WebContents* GetAsWebContents() OVERRIDE;
286 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 287 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
287 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; 288 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
288 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; 289 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE;
289 virtual void RenderViewTerminated(RenderViewHost* render_view_host, 290 virtual void RenderViewTerminated(RenderViewHost* render_view_host,
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 RenderWidgetHostViewPort* GetRenderWidgetHostViewPort() const; 753 RenderWidgetHostViewPort* GetRenderWidgetHostViewPort() const;
753 754
754 // Misc non-view stuff ------------------------------------------------------- 755 // Misc non-view stuff -------------------------------------------------------
755 756
756 // Helper functions for sending notifications. 757 // Helper functions for sending notifications.
757 void NotifySwapped(RenderViewHost* old_host, RenderViewHost* new_host); 758 void NotifySwapped(RenderViewHost* old_host, RenderViewHost* new_host);
758 void NotifyDisconnected(); 759 void NotifyDisconnected();
759 760
760 void SetEncoding(const std::string& encoding); 761 void SetEncoding(const std::string& encoding);
761 762
762 // TODO(creis): This should take in a FrameTreeNode to know which node's
763 // render manager to return. For now, we just return the root's.
764 RenderViewHostManager* GetRenderManager() const;
765
766 RenderViewHostImpl* GetRenderViewHostImpl(); 763 RenderViewHostImpl* GetRenderViewHostImpl();
767 764
768 // Removes browser plugin embedder if there is one. 765 // Removes browser plugin embedder if there is one.
769 void RemoveBrowserPluginEmbedder(); 766 void RemoveBrowserPluginEmbedder();
770 767
771 // Clear |render_view_host|'s PowerSaveBlockers. 768 // Clear |render_view_host|'s PowerSaveBlockers.
772 void ClearPowerSaveBlockers(RenderViewHost* render_view_host); 769 void ClearPowerSaveBlockers(RenderViewHost* render_view_host);
773 770
774 // Clear all PowerSaveBlockers, leave power_save_blocker_ empty. 771 // Clear all PowerSaveBlockers, leave power_save_blocker_ empty.
775 void ClearAllPowerSaveBlockers(); 772 void ClearAllPowerSaveBlockers();
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 // Maps the ids of pending image downloads to their callbacks 982 // Maps the ids of pending image downloads to their callbacks
986 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 983 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
987 ImageDownloadMap image_download_map_; 984 ImageDownloadMap image_download_map_;
988 985
989 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 986 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
990 }; 987 };
991 988
992 } // namespace content 989 } // namespace content
993 990
994 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 991 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698