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

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_factory.h

Issue 151003004: Add an automatic settings reset banner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved reset logic to chrome_pref_service_factory Created 6 years, 10 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 namespace base { 11 namespace base {
12 class FilePath; 12 class FilePath;
13 class SequencedTaskRunner; 13 class SequencedTaskRunner;
14 } 14 }
15 15
16 namespace policy { 16 namespace policy {
17 class PolicyService; 17 class PolicyService;
18 } 18 }
19 19
20 namespace user_prefs { 20 namespace user_prefs {
21 class PrefRegistrySyncable; 21 class PrefRegistrySyncable;
22 } 22 }
23 23
24 class ManagedUserSettingsService; 24 class ManagedUserSettingsService;
25 class PrefHashStore; 25 class PrefHashStore;
26 class PrefRegistry; 26 class PrefRegistry;
27 class PrefRegistrySimple;
27 class PrefService; 28 class PrefService;
28 class PrefServiceSyncable; 29 class PrefServiceSyncable;
29 class PrefStore; 30 class PrefStore;
30 31
31 namespace chrome_prefs { 32 namespace chrome_prefs {
32 33
33 // Factory methods that create and initialize a new instance of a 34 // Factory methods that create and initialize a new instance of a
34 // PrefService for Chrome with the applicable PrefStores. The 35 // PrefService for Chrome with the applicable PrefStores. The
35 // |pref_filename| points to the user preference file. This is the 36 // |pref_filename| points to the user preference file. This is the
36 // usual way to create a new PrefService. 37 // usual way to create a new PrefService.
(...skipping 25 matching lines...) Expand all
62 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, 63 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry,
63 bool async); 64 bool async);
64 65
65 // Initializes a preference hash store for the profile preferences file at 66 // Initializes a preference hash store for the profile preferences file at
66 // |pref_filename| without actually loading the profile. 67 // |pref_filename| without actually loading the profile.
67 void InitializeHashStoreForPrefFile( 68 void InitializeHashStoreForPrefFile(
68 const base::FilePath& pref_filename, 69 const base::FilePath& pref_filename,
69 base::SequencedTaskRunner* pref_io_task_runner, 70 base::SequencedTaskRunner* pref_io_task_runner,
70 scoped_ptr<PrefHashStore> pref_hash_store); 71 scoped_ptr<PrefHashStore> pref_hash_store);
71 72
73 // Register local state prefs used by chrome preference system.
74 void RegisterPrefs(PrefRegistrySimple* registry);
75
72 } // namespace chrome_prefs 76 } // namespace chrome_prefs
73 77
74 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 78 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698