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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // Use this keystore bootstrap token if we're not using an explicit | 116 // Use this keystore bootstrap token if we're not using an explicit |
117 // passphrase. | 117 // passphrase. |
118 std::string GetKeystoreEncryptionBootstrapToken() const; | 118 std::string GetKeystoreEncryptionBootstrapToken() const; |
119 void SetKeystoreEncryptionBootstrapToken(const std::string& token); | 119 void SetKeystoreEncryptionBootstrapToken(const std::string& token); |
120 | 120 |
121 // Use this for the unique machine tag used for session sync. | 121 // Use this for the unique machine tag used for session sync. |
122 std::string GetSyncSessionsGUID() const; | 122 std::string GetSyncSessionsGUID() const; |
123 void SetSyncSessionsGUID(const std::string& guid); | 123 void SetSyncSessionsGUID(const std::string& guid); |
124 | 124 |
125 // Maps |data_type| to its corresponding preference name. | 125 // Maps |type| to its corresponding preference name. |
126 static const char* GetPrefNameForDataType(ModelType data_type); | 126 static const char* GetPrefNameForDataType(ModelType type); |
127 | 127 |
128 #if defined(OS_CHROMEOS) | 128 #if defined(OS_CHROMEOS) |
129 // Use this spare bootstrap token only when setting up sync for the first | 129 // Use this spare bootstrap token only when setting up sync for the first |
130 // time. | 130 // time. |
131 std::string GetSpareBootstrapToken() const; | 131 std::string GetSpareBootstrapToken() const; |
132 void SetSpareBootstrapToken(const std::string& token); | 132 void SetSpareBootstrapToken(const std::string& token); |
133 #endif | 133 #endif |
134 | 134 |
135 // Get/set/clear first sync time of current user. Used to roll back browsing | 135 // Get/set/clear first sync time of current user. Used to roll back browsing |
136 // data later when user signs out. | 136 // data later when user signs out. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // etc. | 219 // etc. |
220 using PrefGroupsMap = std::map<ModelType, ModelTypeSet>; | 220 using PrefGroupsMap = std::map<ModelType, ModelTypeSet>; |
221 PrefGroupsMap pref_groups_; | 221 PrefGroupsMap pref_groups_; |
222 | 222 |
223 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 223 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
224 }; | 224 }; |
225 | 225 |
226 } // namespace syncer | 226 } // namespace syncer |
227 | 227 |
228 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ | 228 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ |
OLD | NEW |