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

Side by Side Diff: components/sync/base/sync_prefs.h

Issue 2528163002: Rewire the local sync switches through the pref store. (Closed)
Patch Set: Comment new SyncPrefs methods. Created 4 years 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
« no previous file with comments | « components/sync/base/pref_names.cc ('k') | components/sync/base/sync_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SYNC_BASE_SYNC_PREFS_H_ 5 #ifndef COMPONENTS_SYNC_BASE_SYNC_PREFS_H_
6 #define COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ 6 #define COMPONENTS_SYNC_BASE_SYNC_PREFS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void SetPassphraseEncryptionTransitionInProgress(bool value); 173 void SetPassphraseEncryptionTransitionInProgress(bool value);
174 bool GetPassphraseEncryptionTransitionInProgress() const; 174 bool GetPassphraseEncryptionTransitionInProgress() const;
175 175
176 // Get/set for saved Nigori specifics that must be passed to backend 176 // Get/set for saved Nigori specifics that must be passed to backend
177 // initialization after transition. 177 // initialization after transition.
178 void SetNigoriSpecificsForPassphraseTransition( 178 void SetNigoriSpecificsForPassphraseTransition(
179 const sync_pb::NigoriSpecifics& nigori_specifics); 179 const sync_pb::NigoriSpecifics& nigori_specifics);
180 void GetNigoriSpecificsForPassphraseTransition( 180 void GetNigoriSpecificsForPassphraseTransition(
181 sync_pb::NigoriSpecifics* nigori_specifics) const; 181 sync_pb::NigoriSpecifics* nigori_specifics) const;
182 182
183 // Gets the local sync backend enabled state and its database location.
184 bool IsLocalSyncEnabled() const;
185 base::FilePath GetLocalSyncBackendDir() const;
186
183 private: 187 private:
184 void RegisterPrefGroups(); 188 void RegisterPrefGroups();
185 189
186 static void RegisterDataTypePreferredPref( 190 static void RegisterDataTypePreferredPref(
187 user_prefs::PrefRegistrySyncable* prefs, 191 user_prefs::PrefRegistrySyncable* prefs,
188 ModelType type, 192 ModelType type,
189 bool is_preferred); 193 bool is_preferred);
190 bool GetDataTypePreferred(ModelType type) const; 194 bool GetDataTypePreferred(ModelType type) const;
191 void SetDataTypePreferred(ModelType type, bool is_preferred); 195 void SetDataTypePreferred(ModelType type, bool is_preferred);
192 196
(...skipping 22 matching lines...) Expand all
215 // etc. 219 // etc.
216 typedef std::map<ModelType, ModelTypeSet> PrefGroupsMap; 220 typedef std::map<ModelType, ModelTypeSet> PrefGroupsMap;
217 PrefGroupsMap pref_groups_; 221 PrefGroupsMap pref_groups_;
218 222
219 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); 223 DISALLOW_COPY_AND_ASSIGN(SyncPrefs);
220 }; 224 };
221 225
222 } // namespace syncer 226 } // namespace syncer
223 227
224 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ 228 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_
OLDNEW
« no previous file with comments | « components/sync/base/pref_names.cc ('k') | components/sync/base/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698