Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 bool IsLocalSyncEnabled() const; | |
|
Nicolas Zea
2016/11/29 18:32:15
nit: Add comment about what these methods relate t
pastarmovj
2016/12/01 10:15:10
Done.
| |
| 184 base::FilePath GetLocalSyncBackendDir() const; | |
| 185 | |
| 183 private: | 186 private: |
| 184 void RegisterPrefGroups(); | 187 void RegisterPrefGroups(); |
| 185 | 188 |
| 186 static void RegisterDataTypePreferredPref( | 189 static void RegisterDataTypePreferredPref( |
| 187 user_prefs::PrefRegistrySyncable* prefs, | 190 user_prefs::PrefRegistrySyncable* prefs, |
| 188 ModelType type, | 191 ModelType type, |
| 189 bool is_preferred); | 192 bool is_preferred); |
| 190 bool GetDataTypePreferred(ModelType type) const; | 193 bool GetDataTypePreferred(ModelType type) const; |
| 191 void SetDataTypePreferred(ModelType type, bool is_preferred); | 194 void SetDataTypePreferred(ModelType type, bool is_preferred); |
| 192 | 195 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 215 // etc. | 218 // etc. |
| 216 typedef std::map<ModelType, ModelTypeSet> PrefGroupsMap; | 219 typedef std::map<ModelType, ModelTypeSet> PrefGroupsMap; |
| 217 PrefGroupsMap pref_groups_; | 220 PrefGroupsMap pref_groups_; |
| 218 | 221 |
| 219 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 222 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
| 220 }; | 223 }; |
| 221 | 224 |
| 222 } // namespace syncer | 225 } // namespace syncer |
| 223 | 226 |
| 224 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ | 227 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ |
| OLD | NEW |