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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 // Changes are still made to the prefs even if | 88 // Changes are still made to the prefs even if |
89 // HasKeepEverythingSynced() is true, but won't be visible until | 89 // HasKeepEverythingSynced() is true, but won't be visible until |
90 // SetKeepEverythingSynced(false) is called. | 90 // SetKeepEverythingSynced(false) is called. |
91 void SetPreferredDataTypes( | 91 void SetPreferredDataTypes( |
92 syncable::ModelTypeSet registered_types, | 92 syncable::ModelTypeSet registered_types, |
93 syncable::ModelTypeSet preferred_types); | 93 syncable::ModelTypeSet preferred_types); |
94 | 94 |
95 // This pref is set outside of sync. | 95 // This pref is set outside of sync. |
96 bool IsManaged() const; | 96 bool IsManaged() const; |
97 | 97 |
98 // Use this encryption bootstrap token once already syncing. | |
98 std::string GetEncryptionBootstrapToken() const; | 99 std::string GetEncryptionBootstrapToken() const; |
99 void SetEncryptionBootstrapToken(const std::string& token); | 100 void SetEncryptionBootstrapToken(const std::string& token); |
100 | 101 |
102 // Use this spare bootstrap token only when setting up sync for the first | |
103 // time. | |
104 std::string GetSpareBootstrapToken() const; | |
Nicolas Zea
2012/04/03 23:47:20
Since the preference exists only on ChromeOS, thes
kochi
2012/04/04 00:10:20
Done.
| |
105 void SetSpareBootstrapToken(const std::string& token); | |
106 | |
101 // InvalidationVersionTracker implementation. | 107 // InvalidationVersionTracker implementation. |
102 virtual sync_notifier::InvalidationVersionMap | 108 virtual sync_notifier::InvalidationVersionMap |
103 GetAllMaxVersions() const OVERRIDE; | 109 GetAllMaxVersions() const OVERRIDE; |
104 virtual void SetMaxVersion(syncable::ModelType model_type, | 110 virtual void SetMaxVersion(syncable::ModelType model_type, |
105 int64 max_version) OVERRIDE; | 111 int64 max_version) OVERRIDE; |
106 | 112 |
107 // Merges the given set of types with the set of acknowledged types. | 113 // Merges the given set of types with the set of acknowledged types. |
108 void AcknowledgeSyncedTypes(syncable::ModelTypeSet types); | 114 void AcknowledgeSyncedTypes(syncable::ModelTypeSet types); |
109 | 115 |
110 // content::NotificationObserver implementation. | 116 // content::NotificationObserver implementation. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 // etc. | 158 // etc. |
153 typedef std::map<syncable::ModelType, syncable::ModelTypeSet> PrefGroupsMap; | 159 typedef std::map<syncable::ModelType, syncable::ModelTypeSet> PrefGroupsMap; |
154 PrefGroupsMap pref_groups_; | 160 PrefGroupsMap pref_groups_; |
155 | 161 |
156 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 162 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
157 }; | 163 }; |
158 | 164 |
159 } // namespace browser_sync | 165 } // namespace browser_sync |
160 | 166 |
161 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ | 167 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
OLD | NEW |