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

Side by Side Diff: content/public/browser/gpu_data_manager.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
« no previous file with comments | « content/content_common.gypi ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/common/gpu_feature_type.h" 11 #include "content/public/common/gpu_feature_type.h"
12 #include "content/public/common/gpu_switching_option.h" 12 #include "content/public/common/gpu_switching_option.h"
13 13
14 class FilePath; 14 class FilePath;
15 class GURL;
15 16
16 namespace base { 17 namespace base {
17 class ListValue; 18 class ListValue;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 22
22 class GpuDataManagerObserver; 23 class GpuDataManagerObserver;
23 struct GPUInfo; 24 struct GPUInfo;
24 25
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 78
78 // Registers/unregister |observer|. 79 // Registers/unregister |observer|.
79 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; 80 virtual void AddObserver(GpuDataManagerObserver* observer) = 0;
80 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; 81 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0;
81 82
82 // Notifies the gpu process about the number of browser windows, so 83 // Notifies the gpu process about the number of browser windows, so
83 // they can be used to determine managed memory allocation. 84 // they can be used to determine managed memory allocation.
84 virtual void SetWindowCount(uint32 count) = 0; 85 virtual void SetWindowCount(uint32 count) = 0;
85 virtual uint32 GetWindowCount() const = 0; 86 virtual uint32 GetWindowCount() const = 0;
86 87
88 // Allows a given domain previously blocked from accessing 3D APIs
89 // to access them again.
90 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0;
91 // Disables domain blocking for 3D APIs. For use only in tests.
92 virtual void DisableDomainBlockingFor3DAPIsForTesting() = 0;
93
87 protected: 94 protected:
88 virtual ~GpuDataManager() {} 95 virtual ~GpuDataManager() {}
89 }; 96 };
90 97
91 }; // namespace content 98 }; // namespace content
92 99
93 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 100 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698