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

Side by Side 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: Cleanups after restructuring based on review feedback from @jam. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_THREE_D_API_OBSERVER_H_
6 #define CHROME_BROWSER_THREE_D_API_OBSERVER_H_
7
8 #include "content/public/browser/web_contents_observer.h"
9 #include "content/public/browser/web_contents_user_data.h"
10
11 class ThreeDAPIObserver
12 : public content::WebContentsObserver,
13 public content::WebContentsUserData<ThreeDAPIObserver> {
14 public:
15 virtual ~ThreeDAPIObserver();
16
17 private:
18 explicit ThreeDAPIObserver(content::WebContents* web_contents);
19 friend class content::WebContentsUserData<ThreeDAPIObserver>;
20
21 virtual void DidBlock3DAPIs(const GURL& url,
22 content::ThreeDAPIType requester) OVERRIDE;
23
24 DISALLOW_COPY_AND_ASSIGN(ThreeDAPIObserver);
25 };
26
27 #endif // CHROME_BROWSER_THREE_D_API_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698