OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <list> | 11 #include <list> |
12 #include <map> | 12 #include <map> |
| 13 #include <memory> |
13 #include <set> | 14 #include <set> |
14 #include <string> | 15 #include <string> |
15 #include <vector> | 16 #include <vector> |
16 | 17 |
17 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
18 #include "base/macros.h" | 19 #include "base/macros.h" |
19 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
20 #include "base/memory/singleton.h" | 21 #include "base/memory/singleton.h" |
21 #include "base/observer_list_threadsafe.h" | 22 #include "base/observer_list_threadsafe.h" |
| 23 #include "base/values.h" |
22 #include "build/build_config.h" | 24 #include "build/build_config.h" |
23 #include "content/browser/gpu/gpu_data_manager_impl.h" | 25 #include "content/browser/gpu/gpu_data_manager_impl.h" |
24 #include "gpu/config/gpu_blacklist.h" | 26 #include "gpu/config/gpu_blacklist.h" |
25 #include "gpu/config/gpu_driver_bug_list.h" | 27 #include "gpu/config/gpu_driver_bug_list.h" |
26 | 28 |
27 namespace base { | 29 namespace base { |
28 class CommandLine; | 30 class CommandLine; |
29 } | 31 } |
30 | 32 |
31 namespace gpu { | 33 namespace gpu { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 void GetBlacklistReasons(base::ListValue* reasons) const; | 86 void GetBlacklistReasons(base::ListValue* reasons) const; |
85 | 87 |
86 std::vector<std::string> GetDriverBugWorkarounds() const; | 88 std::vector<std::string> GetDriverBugWorkarounds() const; |
87 | 89 |
88 void AddLogMessage(int level, | 90 void AddLogMessage(int level, |
89 const std::string& header, | 91 const std::string& header, |
90 const std::string& message); | 92 const std::string& message); |
91 | 93 |
92 void ProcessCrashed(base::TerminationStatus exit_code); | 94 void ProcessCrashed(base::TerminationStatus exit_code); |
93 | 95 |
94 base::ListValue* GetLogMessages() const; | 96 std::unique_ptr<base::ListValue> GetLogMessages() const; |
95 | 97 |
96 void HandleGpuSwitch(); | 98 void HandleGpuSwitch(); |
97 | 99 |
98 bool CanUseGpuBrowserCompositor() const; | 100 bool CanUseGpuBrowserCompositor() const; |
99 bool ShouldDisableAcceleratedVideoDecode( | 101 bool ShouldDisableAcceleratedVideoDecode( |
100 const base::CommandLine* command_line) const; | 102 const base::CommandLine* command_line) const; |
101 | 103 |
102 void GetDisabledExtensions(std::string* disabled_extensions) const; | 104 void GetDisabledExtensions(std::string* disabled_extensions) const; |
103 | 105 |
104 void BlockDomainFrom3DAPIs( | 106 void BlockDomainFrom3DAPIs( |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // If one tries to call a member before initialization then it is defered | 281 // If one tries to call a member before initialization then it is defered |
280 // until Initialize() is completed. | 282 // until Initialize() is completed. |
281 std::vector<base::Closure> post_init_tasks_; | 283 std::vector<base::Closure> post_init_tasks_; |
282 | 284 |
283 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 285 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
284 }; | 286 }; |
285 | 287 |
286 } // namespace content | 288 } // namespace content |
287 | 289 |
288 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 290 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
OLD | NEW |