| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { | 163 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { |
| 164 return java_bridge_dispatcher_host_manager_.get(); | 164 return java_bridge_dispatcher_host_manager_.get(); |
| 165 } | 165 } |
| 166 #endif | 166 #endif |
| 167 | 167 |
| 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() const; |
| 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() const; |
| 177 | 177 |
| 178 // Gets the current fullscreen render widget's routing ID. Returns | 178 // Gets the current fullscreen render widget's routing ID. Returns |
| 179 // MSG_ROUTING_NONE when there is no fullscreen render widget. | 179 // MSG_ROUTING_NONE when there is no fullscreen render widget. |
| 180 int GetFullscreenWidgetRoutingID() const; | 180 int GetFullscreenWidgetRoutingID() const; |
| 181 | 181 |
| 182 void DidBlock3DAPIs(const GURL& url, ThreeDAPIType requester); | 182 void DidBlock3DAPIs(const GURL& url, ThreeDAPIType requester); |
| 183 | 183 |
| 184 // WebContents ------------------------------------------------------ | 184 // WebContents ------------------------------------------------------ |
| 185 virtual WebContentsDelegate* GetDelegate() OVERRIDE; | 185 virtual WebContentsDelegate* GetDelegate() OVERRIDE; |
| 186 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; | 186 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; |
| 187 virtual NavigationControllerImpl& GetController() OVERRIDE; | 187 virtual NavigationControllerImpl& GetController() OVERRIDE; |
| 188 virtual const NavigationControllerImpl& GetController() const OVERRIDE; | 188 virtual const NavigationControllerImpl& GetController() const OVERRIDE; |
| 189 virtual BrowserContext* GetBrowserContext() const OVERRIDE; | 189 virtual BrowserContext* GetBrowserContext() const OVERRIDE; |
| 190 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; | 190 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; |
| 191 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; | 191 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; |
| 192 virtual void GetRenderViewHostAtPosition( | 192 virtual void GetRenderViewHostAtPosition( |
| 193 int x, | 193 int x, |
| 194 int y, | 194 int y, |
| 195 const GetRenderViewHostCallback& callback) OVERRIDE; | 195 const GetRenderViewHostCallback& callback) OVERRIDE; |
| 196 virtual WebContents* GetEmbedderWebContents() const OVERRIDE; |
| 197 virtual int GetInstanceID() const OVERRIDE; |
| 196 virtual int GetRoutingID() const OVERRIDE; | 198 virtual int GetRoutingID() const OVERRIDE; |
| 197 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE; | 199 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE; |
| 198 virtual WebContentsView* GetView() const OVERRIDE; | 200 virtual WebContentsView* GetView() const OVERRIDE; |
| 199 virtual WebUI* CreateWebUI(const GURL& url) OVERRIDE; | 201 virtual WebUI* CreateWebUI(const GURL& url) OVERRIDE; |
| 200 virtual WebUI* GetWebUI() const OVERRIDE; | 202 virtual WebUI* GetWebUI() const OVERRIDE; |
| 201 virtual WebUI* GetCommittedWebUI() const OVERRIDE; | 203 virtual WebUI* GetCommittedWebUI() const OVERRIDE; |
| 202 virtual void SetUserAgentOverride(const std::string& override) OVERRIDE; | 204 virtual void SetUserAgentOverride(const std::string& override) OVERRIDE; |
| 203 virtual const std::string& GetUserAgentOverride() const OVERRIDE; | 205 virtual const std::string& GetUserAgentOverride() const OVERRIDE; |
| 204 virtual const string16& GetTitle() const OVERRIDE; | 206 virtual const string16& GetTitle() const OVERRIDE; |
| 205 virtual int32 GetMaxPageID() OVERRIDE; | 207 virtual int32 GetMaxPageID() OVERRIDE; |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 // Maps the ids of pending favicon downloads to their callbacks | 878 // Maps the ids of pending favicon downloads to their callbacks |
| 877 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 879 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
| 878 FaviconDownloadMap favicon_download_map_; | 880 FaviconDownloadMap favicon_download_map_; |
| 879 | 881 |
| 880 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 882 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 881 }; | 883 }; |
| 882 | 884 |
| 883 } // namespace content | 885 } // namespace content |
| 884 | 886 |
| 885 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 887 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |