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

Unified Diff: chrome/browser/three_d_api_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 | « chrome/browser/api/infobars/infobar_delegate.cc ('k') | chrome/browser/three_d_api_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/three_d_api_observer.h
diff --git a/chrome/browser/three_d_api_observer.h b/chrome/browser/three_d_api_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..2f4b344d4c41f06f0260385a5f4d0ada2de3bdc7
--- /dev/null
+++ b/chrome/browser/three_d_api_observer.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_THREE_D_API_OBSERVER_H_
+#define CHROME_BROWSER_THREE_D_API_OBSERVER_H_
+
+#include "content/public/browser/web_contents_observer.h"
+#include "content/public/browser/web_contents_user_data.h"
+
+class ThreeDAPIObserver
+ : public content::WebContentsObserver,
+ public content::WebContentsUserData<ThreeDAPIObserver> {
+ public:
+ virtual ~ThreeDAPIObserver();
+
+ private:
+ explicit ThreeDAPIObserver(content::WebContents* web_contents);
+ friend class content::WebContentsUserData<ThreeDAPIObserver>;
+
+ virtual void DidBlock3DAPIs(const GURL& url,
+ content::ThreeDAPIType requester) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(ThreeDAPIObserver);
+};
+
+#endif // CHROME_BROWSER_THREE_D_API_OBSERVER_H_
« no previous file with comments | « chrome/browser/api/infobars/infobar_delegate.cc ('k') | chrome/browser/three_d_api_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698