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 CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_ |
6 #define CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_ | 6 #define CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/prefs/pref_change_registrar.h" | 9 #include "components/prefs/pref_change_registrar.h" |
10 | 10 |
11 class PrefRegistrySimple; | 11 class PrefRegistrySimple; |
12 | 12 |
13 class GpuModeManager { | 13 class GpuModeManager { |
14 public: | 14 public: |
15 static void RegisterPrefs(PrefRegistrySimple* registry); | 15 static void RegisterPrefs(PrefRegistrySimple* registry); |
16 | 16 |
17 GpuModeManager(); | 17 GpuModeManager(); |
18 ~GpuModeManager(); | 18 ~GpuModeManager(); |
19 | 19 |
20 bool initial_gpu_mode_pref() const; | 20 bool initial_gpu_mode_pref() const; |
21 | 21 |
22 private: | 22 private: |
23 static bool IsGpuModePrefEnabled(); | 23 static bool IsGpuModePrefEnabled(); |
24 | 24 |
25 PrefChangeRegistrar pref_registrar_; | 25 PrefChangeRegistrar pref_registrar_; |
26 | 26 |
27 bool initial_gpu_mode_pref_; | 27 bool initial_gpu_mode_pref_; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(GpuModeManager); | 29 DISALLOW_COPY_AND_ASSIGN(GpuModeManager); |
30 }; | 30 }; |
31 | 31 |
32 #endif // CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_ | 32 #endif // CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_ |
33 | 33 |
OLD | NEW |