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; | |
167 }; | 164 }; |
168 | 165 |
169 // An interface the embedding application implements to be notified | 166 // An interface the embedding application implements to be notified |
170 // on change events. Note that these methods may be called on *any* | 167 // on change events. Note that these methods may be called on *any* |
171 // thread. | 168 // thread. |
172 class ChangeDelegate { | 169 class ChangeDelegate { |
173 public: | 170 public: |
174 // Notify the delegate that changes have been applied to the sync model. | 171 // Notify the delegate that changes have been applied to the sync model. |
175 // | 172 // |
176 // This will be invoked on the same thread as on which ApplyChanges was | 173 // 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... |
601 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 598 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
602 const syncable::ModelTypeSet types, | 599 const syncable::ModelTypeSet types, |
603 sync_api::UserShare* share); | 600 sync_api::UserShare* share); |
604 | 601 |
605 // Returns the string representation of a PassphraseRequiredReason value. | 602 // Returns the string representation of a PassphraseRequiredReason value. |
606 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 603 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
607 | 604 |
608 } // namespace sync_api | 605 } // namespace sync_api |
609 | 606 |
610 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 607 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |