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 CHROME_BROWSER_SYNC_SYNC_PREFS_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
6 #define CHROME_BROWSER_SYNC_SYNC_PREFS_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 // Use this encryption bootstrap token if we're using an explicit passphrase. | 104 // Use this encryption bootstrap token if we're using an explicit passphrase. |
105 std::string GetEncryptionBootstrapToken() const; | 105 std::string GetEncryptionBootstrapToken() const; |
106 void SetEncryptionBootstrapToken(const std::string& token); | 106 void SetEncryptionBootstrapToken(const std::string& token); |
107 | 107 |
108 // Use this keystore bootstrap token if we're not using an explicit | 108 // Use this keystore bootstrap token if we're not using an explicit |
109 // passphrase. | 109 // passphrase. |
110 std::string GetKeystoreEncryptionBootstrapToken() const; | 110 std::string GetKeystoreEncryptionBootstrapToken() const; |
111 void SetKeystoreEncryptionBootstrapToken(const std::string& token); | 111 void SetKeystoreEncryptionBootstrapToken(const std::string& token); |
112 | 112 |
| 113 // Use this for the unique machine tag used for session sync. |
| 114 std::string GetSyncSessionsGUID() const; |
| 115 void SetSyncSessionsGUID(const std::string& guid); |
| 116 |
113 // Maps |data_type| to its corresponding preference name. | 117 // Maps |data_type| to its corresponding preference name. |
114 static const char* GetPrefNameForDataType(syncer::ModelType data_type); | 118 static const char* GetPrefNameForDataType(syncer::ModelType data_type); |
115 | 119 |
116 #if defined(OS_CHROMEOS) | 120 #if defined(OS_CHROMEOS) |
117 // Use this spare bootstrap token only when setting up sync for the first | 121 // Use this spare bootstrap token only when setting up sync for the first |
118 // time. | 122 // time. |
119 std::string GetSpareBootstrapToken() const; | 123 std::string GetSpareBootstrapToken() const; |
120 void SetSpareBootstrapToken(const std::string& token); | 124 void SetSpareBootstrapToken(const std::string& token); |
121 #endif | 125 #endif |
122 | 126 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // etc. | 166 // etc. |
163 typedef std::map<syncer::ModelType, syncer::ModelTypeSet> PrefGroupsMap; | 167 typedef std::map<syncer::ModelType, syncer::ModelTypeSet> PrefGroupsMap; |
164 PrefGroupsMap pref_groups_; | 168 PrefGroupsMap pref_groups_; |
165 | 169 |
166 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 170 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
167 }; | 171 }; |
168 | 172 |
169 } // namespace browser_sync | 173 } // namespace browser_sync |
170 | 174 |
171 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ | 175 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
OLD | NEW |