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

Side by Side Diff: components/user_prefs/pref_registry_syncable.h

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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 COMPONENTS_USER_PREFS_PREF_REGISTRY_SYNCABLE_H_ 5 #ifndef COMPONENTS_USER_PREFS_PREF_REGISTRY_SYNCABLE_H_
6 #define COMPONENTS_USER_PREFS_PREF_REGISTRY_SYNCABLE_H_ 6 #define COMPONENTS_USER_PREFS_PREF_REGISTRY_SYNCABLE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/prefs/pref_registry.h" 11 #include "base/prefs/pref_registry.h"
12 #include "components/user_prefs/user_prefs_export.h" 12 #include "components/user_prefs/user_prefs_export.h"
13 13
14 namespace base { 14 namespace base {
15 class DictionaryValue; 15 class DictionaryValue;
16 class FilePath; 16 class FilePath;
17 class ListValue; 17 class ListValue;
18 class Value; 18 class Value;
19 } 19 }
20 20
21 namespace user_prefs {
22
21 // A PrefRegistry that forces users to choose whether each registered 23 // A PrefRegistry that forces users to choose whether each registered
22 // preference is syncable or not. 24 // preference is syncable or not.
23 // 25 //
24 // Classes or components that want to register such preferences should 26 // Classes or components that want to register such preferences should
25 // define a static function named RegisterUserPrefs that takes a 27 // define a static function named RegisterUserPrefs that takes a
26 // PrefRegistrySyncable*, and the top-level application using the 28 // PrefRegistrySyncable*, and the top-level application using the
27 // class or embedding the component should call this function at an 29 // class or embedding the component should call this function at an
28 // appropriate time before the PrefService for these preferences is 30 // appropriate time before the PrefService for these preferences is
29 // constructed. See e.g. chrome/browser/prefs/browser_prefs.cc which 31 // constructed. See e.g. chrome/browser/prefs/browser_prefs.cc which
30 // does this for Chrome. 32 // does this for Chrome.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 PrefSyncStatus sync_status); 119 PrefSyncStatus sync_status);
118 120
119 SyncableRegistrationCallback callback_; 121 SyncableRegistrationCallback callback_;
120 122
121 // Contains the names of all registered preferences that are syncable. 123 // Contains the names of all registered preferences that are syncable.
122 PrefToStatus syncable_preferences_; 124 PrefToStatus syncable_preferences_;
123 125
124 DISALLOW_COPY_AND_ASSIGN(PrefRegistrySyncable); 126 DISALLOW_COPY_AND_ASSIGN(PrefRegistrySyncable);
125 }; 127 };
126 128
129 } // namespace user_prefs
130
127 #endif // COMPONENTS_USER_PREFS_PREF_REGISTRY_SYNCABLE_H_ 131 #endif // COMPONENTS_USER_PREFS_PREF_REGISTRY_SYNCABLE_H_
OLDNEW
« no previous file with comments | « components/autofill/browser/autofill_manager.cc ('k') | components/user_prefs/pref_registry_syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698