| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_GESTURE_PREFS_OBSERVER_FACTORY_AURA_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_ASH_GESTURE_PREFS_OBSERVER_FACTORY_AURA_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/memory/singleton.h" | |
| 11 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | |
| 12 | |
| 13 class PrefService; | |
| 14 class Profile; | |
| 15 | |
| 16 // Create an observer per Profile that listens for gesture preferences updates. | |
| 17 class GesturePrefsObserverFactoryAura : public ProfileKeyedServiceFactory { | |
| 18 public: | |
| 19 static GesturePrefsObserverFactoryAura* GetInstance(); | |
| 20 | |
| 21 private: | |
| 22 friend struct DefaultSingletonTraits<GesturePrefsObserverFactoryAura>; | |
| 23 | |
| 24 GesturePrefsObserverFactoryAura(); | |
| 25 virtual ~GesturePrefsObserverFactoryAura(); | |
| 26 | |
| 27 // ProfileKeyedServiceFactory: | |
| 28 virtual ProfileKeyedService* BuildServiceInstanceFor( | |
| 29 Profile* profile) const OVERRIDE; | |
| 30 virtual void RegisterUserPrefs(PrefService* prefs) OVERRIDE; | |
| 31 virtual bool ServiceIsCreatedWithProfile() OVERRIDE; | |
| 32 virtual bool ServiceRedirectedInIncognito() OVERRIDE; | |
| 33 virtual bool ServiceIsNULLWhileTesting() OVERRIDE; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(GesturePrefsObserverFactoryAura); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_UI_VIEWS_ASH_GESTURE_PREFS_OBSERVER_FACTORY_AURA_H_ | |
| OLD | NEW |