| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Expose the render manager for testing. | 168 // Expose the render manager for testing. |
| 169 RenderViewHostManager* GetRenderManagerForTesting(); | 169 RenderViewHostManager* GetRenderManagerForTesting(); |
| 170 | 170 |
| 171 // Returns guest browser plugin object, or NULL if this WebContents is not a | 171 // Returns guest browser plugin object, or NULL if this WebContents is not a |
| 172 // guest. | 172 // guest. |
| 173 BrowserPluginGuest* GetBrowserPluginGuest(); | 173 BrowserPluginGuest* GetBrowserPluginGuest(); |
| 174 // Returns embedder browser plugin object, or NULL if this WebContents is not | 174 // Returns embedder browser plugin object, or NULL if this WebContents is not |
| 175 // an embedder. | 175 // an embedder. |
| 176 BrowserPluginEmbedder* GetBrowserPluginEmbedder(); | 176 BrowserPluginEmbedder* GetBrowserPluginEmbedder(); |
| 177 | 177 |
| 178 // Gets the current fullscreen render widget's routing ID. Returns |
| 179 // MSG_ROUTING_NONE when there is no fullscreen render widget. |
| 180 int GetFullscreenWidgetRoutingID() const; |
| 181 |
| 178 void DidBlock3DAPIs(const GURL& url, ThreeDAPIType requester); | 182 void DidBlock3DAPIs(const GURL& url, ThreeDAPIType requester); |
| 179 | 183 |
| 180 // WebContents ------------------------------------------------------ | 184 // WebContents ------------------------------------------------------ |
| 181 virtual WebContentsDelegate* GetDelegate() OVERRIDE; | 185 virtual WebContentsDelegate* GetDelegate() OVERRIDE; |
| 182 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; | 186 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; |
| 183 virtual NavigationControllerImpl& GetController() OVERRIDE; | 187 virtual NavigationControllerImpl& GetController() OVERRIDE; |
| 184 virtual const NavigationControllerImpl& GetController() const OVERRIDE; | 188 virtual const NavigationControllerImpl& GetController() const OVERRIDE; |
| 185 virtual BrowserContext* GetBrowserContext() const OVERRIDE; | 189 virtual BrowserContext* GetBrowserContext() const OVERRIDE; |
| 186 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; | 190 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; |
| 187 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; | 191 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 NotificationRegistrar registrar_; | 862 NotificationRegistrar registrar_; |
| 859 | 863 |
| 860 // Used during IPC message dispatching so that the handlers can get a pointer | 864 // Used during IPC message dispatching so that the handlers can get a pointer |
| 861 // to the RVH through which the message was received. | 865 // to the RVH through which the message was received. |
| 862 RenderViewHost* message_source_; | 866 RenderViewHost* message_source_; |
| 863 | 867 |
| 864 // All live RenderWidgetHostImpls that are created by this object and may | 868 // All live RenderWidgetHostImpls that are created by this object and may |
| 865 // outlive it. | 869 // outlive it. |
| 866 std::set<RenderWidgetHostImpl*> created_widgets_; | 870 std::set<RenderWidgetHostImpl*> created_widgets_; |
| 867 | 871 |
| 872 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise. |
| 873 int fullscreen_widget_routing_id_; |
| 874 |
| 868 // Maps the ids of pending favicon downloads to their callbacks | 875 // Maps the ids of pending favicon downloads to their callbacks |
| 869 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 876 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
| 870 FaviconDownloadMap favicon_download_map_; | 877 FaviconDownloadMap favicon_download_map_; |
| 871 | 878 |
| 872 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 879 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 873 }; | 880 }; |
| 874 | 881 |
| 875 } // namespace content | 882 } // namespace content |
| 876 | 883 |
| 877 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 884 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |