Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / gpu / gpu_mode_manager.h
blob8dd605b5cdbb87c2ca9daa9555a80fa537270359
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_
6 #define CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_
8 #include "base/prefs/pref_change_registrar.h"
10 class PrefRegistrySimple;
12 class GpuModeManager {
13 public:
14 static void RegisterPrefs(PrefRegistrySimple* registry);
16 GpuModeManager();
17 ~GpuModeManager();
19 bool initial_gpu_mode_pref() const;
21 private:
22 static bool IsGpuModePrefEnabled();
24 PrefChangeRegistrar pref_registrar_;
26 bool initial_gpu_mode_pref_;
28 DISALLOW_COPY_AND_ASSIGN(GpuModeManager);
31 #endif // CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_