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

Unified Diff: content/public/browser/web_contents_observer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/gpu_data_manager.h ('k') | content/public/common/three_d_api_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_observer.h
diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h
index 59e0a1b84272768c89c75e1d274abb6a9aef0f4e..93565da511af756481180689f9350f764db9336c 100644
--- a/content/public/browser/web_contents_observer.h
+++ b/content/public/browser/web_contents_observer.h
@@ -10,6 +10,7 @@
#include "content/common/content_export.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/common/page_transition_types.h"
+#include "content/public/common/three_d_api_types.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "webkit/glue/window_open_disposition.h"
@@ -149,6 +150,12 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
const FilePath& plugin_path,
const base::Callback<void(bool)>& callback);
+ // Indicates that client 3D APIs (Pepper 3D, WebGL) were just
+ // blocked on the current page, specifically because the GPU was
+ // reset recently.
+ virtual void DidBlock3DAPIs(const GURL& url,
+ ThreeDAPIType requester) {}
+
// IPC::Listener implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
« no previous file with comments | « content/public/browser/gpu_data_manager.h ('k') | content/public/common/three_d_api_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698