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

Side by Side Diff: chrome/browser/profile_resetter/automatic_profile_resetter_factory.h

Issue 24533002: Added the AutomaticProfileResetter service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 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.
4
5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_FACTORY_H_
6 #define CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_FACTORY_H_
7
8 #include "base/basictypes.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h"
10
11 template <typename T>
12 struct DefaultSingletonTraits;
13
14 class PrefRegistrySimple;
15
16 namespace content {
17 class BrowserContext;
18 }
19
20 namespace user_prefs {
21 class PrefRegistrySyncable;
22 }
23
24 namespace profile_resetter {
25
26 class AutomaticProfileResetter;
27
28 class AutomaticProfileResetterFactory
29 : public BrowserContextKeyedServiceFactory {
30 public:
31 static AutomaticProfileResetter* GetForBrowserContext(
32 content::BrowserContext* context);
33 static AutomaticProfileResetterFactory* GetInstance();
34
35 // Registers Local State preferences.
36 static void RegisterPrefs(PrefRegistrySimple* registry);
37
38 private:
39 friend struct DefaultSingletonTraits<AutomaticProfileResetterFactory>;
40
41 AutomaticProfileResetterFactory();
42 virtual ~AutomaticProfileResetterFactory();
43
44 // BrowserContextKeyedServiceFactory overrides:
45 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
46 content::BrowserContext* context) const OVERRIDE;
47
48 // BrowserContextKeyedBaseFactory overrides:
49 virtual void RegisterProfilePrefs(
50 user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
51 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
52
53 DISALLOW_COPY_AND_ASSIGN(AutomaticProfileResetterFactory);
54 };
55
56 } // namespace profile_resetter
57
58 #endif // CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698