Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: sync/internal_api/sync_manager.h

Issue 10454105: sync: Refactor per-datatype throttling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor fixes Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 // Count of useless and useful syncs we perform. 149 // Count of useless and useful syncs we perform.
150 int useless_sync_cycles; 150 int useless_sync_cycles;
151 int useful_sync_cycles; 151 int useful_sync_cycles;
152 152
153 // Encryption related. 153 // Encryption related.
154 syncable::ModelTypeSet encrypted_types; 154 syncable::ModelTypeSet encrypted_types;
155 bool cryptographer_ready; 155 bool cryptographer_ready;
156 bool crypto_has_pending_keys; 156 bool crypto_has_pending_keys;
157 157
158 // Per-datatype throttled status.
159 syncable::ModelTypeSet throttled_types;
160
158 // The unique identifer for this client. 161 // The unique identifer for this client.
159 std::string unique_id; 162 std::string unique_id;
160 }; 163 };
161 164
162 // An interface the embedding application implements to be notified 165 // An interface the embedding application implements to be notified
163 // on change events. Note that these methods may be called on *any* 166 // on change events. Note that these methods may be called on *any*
164 // thread. 167 // thread.
165 class ChangeDelegate { 168 class ChangeDelegate {
166 public: 169 public:
167 // Notify the delegate that changes have been applied to the sync model. 170 // Notify the delegate that changes have been applied to the sync model.
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 sync_api::UserShare* share); 634 sync_api::UserShare* share);
632 635
633 const char* ConnectionStatusToString(ConnectionStatus status); 636 const char* ConnectionStatusToString(ConnectionStatus status);
634 637
635 // Returns the string representation of a PassphraseRequiredReason value. 638 // Returns the string representation of a PassphraseRequiredReason value.
636 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); 639 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason);
637 640
638 } // namespace sync_api 641 } // namespace sync_api
639 642
640 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 643 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698