Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: chrome/browser/ui/views/ash/gesture_prefs_observer_factory_aura.h

Issue 10020048: Work on USE_ASH/USE_AURA split. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698