| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Changes are still made to the prefs even if | 87 // Changes are still made to the prefs even if |
| 88 // HasKeepEverythingSynced() is true, but won't be visible until | 88 // HasKeepEverythingSynced() is true, but won't be visible until |
| 89 // SetKeepEverythingSynced(false) is called. | 89 // SetKeepEverythingSynced(false) is called. |
| 90 void SetPreferredDataTypes( | 90 void SetPreferredDataTypes( |
| 91 syncable::ModelTypeSet registered_types, | 91 syncable::ModelTypeSet registered_types, |
| 92 syncable::ModelTypeSet preferred_types); | 92 syncable::ModelTypeSet preferred_types); |
| 93 | 93 |
| 94 // This pref is set outside of sync. | 94 // This pref is set outside of sync. |
| 95 bool IsManaged() const; | 95 bool IsManaged() const; |
| 96 | 96 |
| 97 // Use this encryption bootstrap token once already syncing. | 97 // Use this encryption bootstrap token if we're using an explicit passphrase. |
| 98 std::string GetEncryptionBootstrapToken() const; | 98 std::string GetEncryptionBootstrapToken() const; |
| 99 void SetEncryptionBootstrapToken(const std::string& token); | 99 void SetEncryptionBootstrapToken(const std::string& token); |
| 100 | 100 |
| 101 // Use this keystore bootstrap token if we're not using an explicit |
| 102 // passphrase. |
| 103 std::string GetKeystoreEncryptionBootstrapToken() const; |
| 104 void SetKeystoreEncryptionBootstrapToken(const std::string& token); |
| 105 |
| 101 #if defined(OS_CHROMEOS) | 106 #if defined(OS_CHROMEOS) |
| 102 // Use this spare bootstrap token only when setting up sync for the first | 107 // Use this spare bootstrap token only when setting up sync for the first |
| 103 // time. | 108 // time. |
| 104 std::string GetSpareBootstrapToken() const; | 109 std::string GetSpareBootstrapToken() const; |
| 105 void SetSpareBootstrapToken(const std::string& token); | 110 void SetSpareBootstrapToken(const std::string& token); |
| 106 #endif | 111 #endif |
| 107 | 112 |
| 108 // 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. |
| 109 void AcknowledgeSyncedTypes(syncable::ModelTypeSet types); | 114 void AcknowledgeSyncedTypes(syncable::ModelTypeSet types); |
| 110 | 115 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // etc. | 158 // etc. |
| 154 typedef std::map<syncable::ModelType, syncable::ModelTypeSet> PrefGroupsMap; | 159 typedef std::map<syncable::ModelType, syncable::ModelTypeSet> PrefGroupsMap; |
| 155 PrefGroupsMap pref_groups_; | 160 PrefGroupsMap pref_groups_; |
| 156 | 161 |
| 157 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 162 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
| 158 }; | 163 }; |
| 159 | 164 |
| 160 } // namespace browser_sync | 165 } // namespace browser_sync |
| 161 | 166 |
| 162 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ | 167 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ |
| OLD | NEW |