OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_GPU_DATA_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_GPU_DATA_MANAGER_H_ |
6 #define CHROME_BROWSER_GPU_DATA_MANAGER_H_ | 6 #define CHROME_BROWSER_GPU_DATA_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "base/singleton.h" | 13 #include "base/singleton.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/web_resource/gpu_blacklist_updater.h" | 15 #include "chrome/browser/web_resource/gpu_blacklist_updater.h" |
16 #include "chrome/common/gpu_feature_flags.h" | 16 #include "content/common/gpu_feature_flags.h" |
17 #include "content/common/gpu_info.h" | 17 #include "content/common/gpu_info.h" |
18 | 18 |
19 class CommandLine; | 19 class CommandLine; |
20 class DictionaryValue; | 20 class DictionaryValue; |
21 class GpuBlacklist; | 21 class GpuBlacklist; |
22 | 22 |
23 class GpuDataManager { | 23 class GpuDataManager { |
24 public: | 24 public: |
25 // Getter for the singleton. This will return NULL on failure. | 25 // Getter for the singleton. This will return NULL on failure. |
26 static GpuDataManager* GetInstance(); | 26 static GpuDataManager* GetInstance(); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Map of callbacks. | 104 // Map of callbacks. |
105 std::set<Callback0::Type*> gpu_info_update_callbacks_; | 105 std::set<Callback0::Type*> gpu_info_update_callbacks_; |
106 | 106 |
107 ListValue log_messages_; | 107 ListValue log_messages_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); | 109 DISALLOW_COPY_AND_ASSIGN(GpuDataManager); |
110 }; | 110 }; |
111 | 111 |
112 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ | 112 #endif // CHROME_BROWSER_GPU_DATA_MANAGER_H_ |
113 | 113 |
OLD | NEW |