OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INTERNAL_API_SYNC_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 int empty_get_updates; | 154 int empty_get_updates; |
155 | 155 |
156 // Count of useless and useful syncs we perform. | 156 // Count of useless and useful syncs we perform. |
157 int useless_sync_cycles; | 157 int useless_sync_cycles; |
158 int useful_sync_cycles; | 158 int useful_sync_cycles; |
159 | 159 |
160 // Encryption related. | 160 // Encryption related. |
161 syncable::ModelTypeSet encrypted_types; | 161 syncable::ModelTypeSet encrypted_types; |
162 bool cryptographer_ready; | 162 bool cryptographer_ready; |
163 bool crypto_has_pending_keys; | 163 bool crypto_has_pending_keys; |
| 164 |
| 165 // The unique identifer for this client. |
| 166 std::string unique_id; |
164 }; | 167 }; |
165 | 168 |
166 // An interface the embedding application implements to be notified | 169 // An interface the embedding application implements to be notified |
167 // on change events. Note that these methods may be called on *any* | 170 // on change events. Note that these methods may be called on *any* |
168 // thread. | 171 // thread. |
169 class ChangeDelegate { | 172 class ChangeDelegate { |
170 public: | 173 public: |
171 // Notify the delegate that changes have been applied to the sync model. | 174 // Notify the delegate that changes have been applied to the sync model. |
172 // | 175 // |
173 // This will be invoked on the same thread as on which ApplyChanges was | 176 // This will be invoked on the same thread as on which ApplyChanges was |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 601 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
599 const syncable::ModelTypeSet types, | 602 const syncable::ModelTypeSet types, |
600 sync_api::UserShare* share); | 603 sync_api::UserShare* share); |
601 | 604 |
602 // Returns the string representation of a PassphraseRequiredReason value. | 605 // Returns the string representation of a PassphraseRequiredReason value. |
603 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 606 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
604 | 607 |
605 } // namespace sync_api | 608 } // namespace sync_api |
606 | 609 |
607 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 610 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |