| OLD | NEW | 
|---|
| 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 <list> | 8 #include <list> | 
| 9 #include <string> | 9 #include <string> | 
| 10 | 10 | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 24 | 24 | 
| 25 // This class is fully thread-safe. | 25 // This class is fully thread-safe. | 
| 26 class GpuDataManager { | 26 class GpuDataManager { | 
| 27  public: | 27  public: | 
| 28   typedef base::Callback<void(const std::list<base::ProcessHandle>&)> | 28   typedef base::Callback<void(const std::list<base::ProcessHandle>&)> | 
| 29       GetGpuProcessHandlesCallback; | 29       GetGpuProcessHandlesCallback; | 
| 30 | 30 | 
| 31   // Getter for the singleton. | 31   // Getter for the singleton. | 
| 32   CONTENT_EXPORT static GpuDataManager* GetInstance(); | 32   CONTENT_EXPORT static GpuDataManager* GetInstance(); | 
| 33 | 33 | 
| 34   virtual void InitializeForTesting(const std::string& gpu_blacklist_json, | 34   // This is only called by extensions testing. | 
| 35                                     const gpu::GPUInfo& gpu_info) = 0; | 35   virtual void BlacklistWebGLForTesting() = 0; | 
| 36 | 36 | 
| 37   virtual bool IsFeatureBlacklisted(int feature) const = 0; | 37   virtual bool IsFeatureBlacklisted(int feature) const = 0; | 
| 38   virtual bool IsFeatureEnabled(int feature) const = 0; | 38   virtual bool IsFeatureEnabled(int feature) const = 0; | 
| 39   virtual bool IsWebGLEnabled() const = 0; | 39   virtual bool IsWebGLEnabled() const = 0; | 
| 40 | 40 | 
| 41   virtual gpu::GPUInfo GetGPUInfo() const = 0; | 41   virtual gpu::GPUInfo GetGPUInfo() const = 0; | 
| 42 | 42 | 
| 43   // Retrieves a list of process handles for all gpu processes. | 43   // Retrieves a list of process handles for all gpu processes. | 
| 44   virtual void GetGpuProcessHandles( | 44   virtual void GetGpuProcessHandles( | 
| 45       const GetGpuProcessHandlesCallback& callback) const = 0; | 45       const GetGpuProcessHandlesCallback& callback) const = 0; | 
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 108   // the backlists decision and applying commandline switches. | 108   // the backlists decision and applying commandline switches. | 
| 109   virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0; | 109   virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) = 0; | 
| 110 | 110 | 
| 111  protected: | 111  protected: | 
| 112   virtual ~GpuDataManager() {} | 112   virtual ~GpuDataManager() {} | 
| 113 }; | 113 }; | 
| 114 | 114 | 
| 115 };  // namespace content | 115 };  // namespace content | 
| 116 | 116 | 
| 117 #endif  // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 117 #endif  // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 
| OLD | NEW | 
|---|