Chromium Code Reviews| 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..863d70b6a4b4b87894dd7aa40fa74e80a2ce2c8b 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,15 @@ 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. If this object handles the request, it should |
|
jam
2012/11/15 16:57:25
nit: just stop this comment at the period. the con
Ken Russell (switch to Gerrit)
2012/11/15 20:53:25
Done.
|
| + // have the side-effect of raising an infobar to prompt the user |
| + // whether they want to run the content (if so, causing the page to |
| + // reload). |
| + virtual void DidBlock3DAPIs(const GURL& url, |
| + ThreeDAPIType requester) {} |
| + |
| // IPC::Listener implementation. |
| virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |