[M120][Tizen][Onscreen] Fix build errors for TV profile
[platform/framework/web/chromium-efl.git] / chrome / browser / gpu / gpu_mode_manager.h
1 // Copyright 2013 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_
6 #define CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_
7
8 #include "components/prefs/pref_change_registrar.h"
9
10 class PrefRegistrySimple;
11
12 class GpuModeManager {
13  public:
14   static void RegisterPrefs(PrefRegistrySimple* registry);
15
16   GpuModeManager();
17
18   GpuModeManager(const GpuModeManager&) = delete;
19   GpuModeManager& operator=(const GpuModeManager&) = delete;
20
21   ~GpuModeManager();
22
23   bool initial_gpu_mode_pref() const;
24
25  private:
26   static bool IsGpuModePrefEnabled();
27
28   PrefChangeRegistrar pref_registrar_;
29
30   bool initial_gpu_mode_pref_;
31 };
32
33 #endif  // CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_