OLD | NEW |
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 265 |
266 // Implementation of PageNavigator. | 266 // Implementation of PageNavigator. |
267 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; | 267 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; |
268 | 268 |
269 // Implementation of IPC::Sender. | 269 // Implementation of IPC::Sender. |
270 virtual bool Send(IPC::Message* message) OVERRIDE; | 270 virtual bool Send(IPC::Message* message) OVERRIDE; |
271 | 271 |
272 // RenderViewHostDelegate ---------------------------------------------------- | 272 // RenderViewHostDelegate ---------------------------------------------------- |
273 | 273 |
274 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; | 274 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; |
275 virtual RenderViewHostDelegate::RendererManagement* | 275 // TODO(creis): Take in a RenderFrameHost. Maybe remove this API and make |
276 GetRendererManagementDelegate() OVERRIDE; | 276 // this a private helper method. |
| 277 virtual RenderViewHostManager* GetRenderManager() const OVERRIDE; |
277 virtual bool OnMessageReceived(RenderViewHost* render_view_host, | 278 virtual bool OnMessageReceived(RenderViewHost* render_view_host, |
278 const IPC::Message& message) OVERRIDE; | 279 const IPC::Message& message) OVERRIDE; |
279 virtual const GURL& GetURL() const OVERRIDE; | 280 virtual const GURL& GetURL() const OVERRIDE; |
280 virtual const GURL& GetVisibleURL() const OVERRIDE; | 281 virtual const GURL& GetVisibleURL() const OVERRIDE; |
281 virtual const GURL& GetLastCommittedURL() const OVERRIDE; | 282 virtual const GURL& GetLastCommittedURL() const OVERRIDE; |
282 virtual WebContents* GetAsWebContents() OVERRIDE; | 283 virtual WebContents* GetAsWebContents() OVERRIDE; |
283 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 284 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
284 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 285 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
285 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; | 286 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; |
286 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 287 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 | 817 |
817 // Helper classes ------------------------------------------------------------ | 818 // Helper classes ------------------------------------------------------------ |
818 | 819 |
819 // Maps the RenderViewHost to its media_player_cookie and PowerSaveBlocker | 820 // Maps the RenderViewHost to its media_player_cookie and PowerSaveBlocker |
820 // pairs. Key is the RenderViewHost, value is the map which maps player_cookie | 821 // pairs. Key is the RenderViewHost, value is the map which maps player_cookie |
821 // on to PowerSaveBlocker. | 822 // on to PowerSaveBlocker. |
822 typedef std::map<RenderViewHost*, std::map<int64, PowerSaveBlocker*> > | 823 typedef std::map<RenderViewHost*, std::map<int64, PowerSaveBlocker*> > |
823 PowerSaveBlockerMap; | 824 PowerSaveBlockerMap; |
824 PowerSaveBlockerMap power_save_blockers_; | 825 PowerSaveBlockerMap power_save_blockers_; |
825 | 826 |
826 // Manages creation and swapping of render views. | |
827 RenderViewHostManager render_manager_; | |
828 | |
829 // The frame tree structure of the current page. | 827 // The frame tree structure of the current page. |
830 FrameTree frame_tree_; | 828 FrameTree frame_tree_; |
831 | 829 |
832 #if defined(OS_ANDROID) | 830 #if defined(OS_ANDROID) |
833 // Manages injecting Java objects into all RenderViewHosts associated with | 831 // Manages injecting Java objects into all RenderViewHosts associated with |
834 // this WebContentsImpl. | 832 // this WebContentsImpl. |
835 scoped_ptr<JavaBridgeDispatcherHostManager> | 833 scoped_ptr<JavaBridgeDispatcherHostManager> |
836 java_bridge_dispatcher_host_manager_; | 834 java_bridge_dispatcher_host_manager_; |
837 #endif | 835 #endif |
838 | 836 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 // Maps the ids of pending image downloads to their callbacks | 973 // Maps the ids of pending image downloads to their callbacks |
976 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 974 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
977 ImageDownloadMap image_download_map_; | 975 ImageDownloadMap image_download_map_; |
978 | 976 |
979 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 977 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
980 }; | 978 }; |
981 | 979 |
982 } // namespace content | 980 } // namespace content |
983 | 981 |
984 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 982 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |