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 SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // Count of useless and useful syncs we perform. | 147 // Count of useless and useful syncs we perform. |
148 int useless_sync_cycles; | 148 int useless_sync_cycles; |
149 int useful_sync_cycles; | 149 int useful_sync_cycles; |
150 | 150 |
151 // Encryption related. | 151 // Encryption related. |
152 syncable::ModelTypeSet encrypted_types; | 152 syncable::ModelTypeSet encrypted_types; |
153 bool cryptographer_ready; | 153 bool cryptographer_ready; |
154 bool crypto_has_pending_keys; | 154 bool crypto_has_pending_keys; |
155 | 155 |
| 156 // Per-datatype throttled status. |
| 157 syncable::ModelTypeSet throttled_types; |
| 158 |
156 // The unique identifer for this client. | 159 // The unique identifer for this client. |
157 std::string unique_id; | 160 std::string unique_id; |
158 }; | 161 }; |
159 | 162 |
160 // An interface the embedding application implements to be notified | 163 // An interface the embedding application implements to be notified |
161 // on change events. Note that these methods may be called on *any* | 164 // on change events. Note that these methods may be called on *any* |
162 // thread. | 165 // thread. |
163 class ChangeDelegate { | 166 class ChangeDelegate { |
164 public: | 167 public: |
165 // Notify the delegate that changes have been applied to the sync model. | 168 // Notify the delegate that changes have been applied to the sync model. |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 sync_api::UserShare* share); | 631 sync_api::UserShare* share); |
629 | 632 |
630 const char* ConnectionStatusToString(ConnectionStatus status); | 633 const char* ConnectionStatusToString(ConnectionStatus status); |
631 | 634 |
632 // Returns the string representation of a PassphraseRequiredReason value. | 635 // Returns the string representation of a PassphraseRequiredReason value. |
633 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 636 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
634 | 637 |
635 } // namespace sync_api | 638 } // namespace sync_api |
636 | 639 |
637 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 640 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |