| 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 // 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 Loading... |
| 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_ |
| OLD | NEW |