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

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

Issue 12026029: Allow TabCapture to capture full screen flash widgets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 7 years, 11 months 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 NotificationRegistrar registrar_; 861 NotificationRegistrar registrar_;
858 862
859 // Used during IPC message dispatching so that the handlers can get a pointer 863 // Used during IPC message dispatching so that the handlers can get a pointer
860 // to the RVH through which the message was received. 864 // to the RVH through which the message was received.
861 RenderViewHost* message_source_; 865 RenderViewHost* message_source_;
862 866
863 // All live RenderWidgetHostImpls that are created by this object and may 867 // All live RenderWidgetHostImpls that are created by this object and may
864 // outlive it. 868 // outlive it.
865 std::set<RenderWidgetHostImpl*> created_widgets_; 869 std::set<RenderWidgetHostImpl*> created_widgets_;
866 870
871 // Routing id of the shown fullscreen widget or MSG_ROUTING_NONE otherwise.
872 int fullscreen_widget_routing_id_;
873
867 // Maps the ids of pending favicon downloads to their callbacks 874 // Maps the ids of pending favicon downloads to their callbacks
868 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; 875 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap;
869 FaviconDownloadMap favicon_download_map_; 876 FaviconDownloadMap favicon_download_map_;
870 877
871 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 878 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
872 }; 879 };
873 880
874 } // namespace content 881 } // namespace content
875 882
876 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 883 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698