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

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

Issue 11378008: Raise an infobar and deny access to WebGL if a GPU reset was detected while a web page containing W… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work around build failure on Mac OS with 10.6 SDK. Created 8 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>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h" 16 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h"
17 #include "content/browser/renderer_host/render_view_host_delegate.h" 17 #include "content/browser/renderer_host/render_view_host_delegate.h"
18 #include "content/browser/renderer_host/render_widget_host_delegate.h" 18 #include "content/browser/renderer_host/render_widget_host_delegate.h"
19 #include "content/browser/web_contents/navigation_controller_impl.h" 19 #include "content/browser/web_contents/navigation_controller_impl.h"
20 #include "content/browser/web_contents/render_view_host_manager.h" 20 #include "content/browser/web_contents/render_view_host_manager.h"
21 #include "content/common/content_export.h" 21 #include "content/common/content_export.h"
22 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
23 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "content/public/common/renderer_preferences.h" 25 #include "content/public/common/renderer_preferences.h"
26 #include "content/public/common/three_d_api_types.h"
26 #include "net/base/load_states.h" 27 #include "net/base/load_states.h"
27 #include "ui/gfx/rect_f.h" 28 #include "ui/gfx/rect_f.h"
28 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
29 #include "webkit/glue/resource_type.h" 30 #include "webkit/glue/resource_type.h"
30 31
31 #if defined(OS_WIN) 32 #if defined(OS_WIN)
32 #include "base/win/scoped_handle.h" 33 #include "base/win/scoped_handle.h"
33 #endif 34 #endif
34 35
35 struct BrowserPluginHostMsg_CreateGuest_Params; 36 struct BrowserPluginHostMsg_CreateGuest_Params;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Expose the render manager for testing. 173 // Expose the render manager for testing.
173 RenderViewHostManager* GetRenderManagerForTesting(); 174 RenderViewHostManager* GetRenderManagerForTesting();
174 175
175 // Returns guest browser plugin object, or NULL if this WebContents is not a 176 // Returns guest browser plugin object, or NULL if this WebContents is not a
176 // guest. 177 // guest.
177 BrowserPluginGuest* GetBrowserPluginGuest(); 178 BrowserPluginGuest* GetBrowserPluginGuest();
178 // Returns embedder browser plugin object, or NULL if this WebContents is not 179 // Returns embedder browser plugin object, or NULL if this WebContents is not
179 // an embedder. 180 // an embedder.
180 BrowserPluginEmbedder* GetBrowserPluginEmbedder(); 181 BrowserPluginEmbedder* GetBrowserPluginEmbedder();
181 182
183 void DidBlock3DAPIs(const GURL& url, ThreeDAPIType requester);
184
182 // WebContents ------------------------------------------------------ 185 // WebContents ------------------------------------------------------
183 virtual WebContentsDelegate* GetDelegate() OVERRIDE; 186 virtual WebContentsDelegate* GetDelegate() OVERRIDE;
184 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; 187 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE;
185 virtual NavigationControllerImpl& GetController() OVERRIDE; 188 virtual NavigationControllerImpl& GetController() OVERRIDE;
186 virtual const NavigationControllerImpl& GetController() const OVERRIDE; 189 virtual const NavigationControllerImpl& GetController() const OVERRIDE;
187 virtual BrowserContext* GetBrowserContext() const OVERRIDE; 190 virtual BrowserContext* GetBrowserContext() const OVERRIDE;
188 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; 191 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE;
189 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; 192 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE;
190 virtual void GetRenderViewHostAtPosition( 193 virtual void GetRenderViewHostAtPosition(
191 int x, 194 int x,
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 // All live RenderWidgetHostImpls that are created by this object and may 857 // All live RenderWidgetHostImpls that are created by this object and may
855 // outlive it. 858 // outlive it.
856 std::set<RenderWidgetHostImpl*> created_widgets_; 859 std::set<RenderWidgetHostImpl*> created_widgets_;
857 860
858 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 861 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
859 }; 862 };
860 863
861 } // namespace content 864 } // namespace content
862 865
863 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 866 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698