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