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

Unified Diff: sync/engine/syncer_proto_util.h

Issue 10454105: sync: Refactor per-datatype throttling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/engine/syncer.cc ('k') | sync/engine/syncer_proto_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/syncer_proto_util.h
diff --git a/sync/engine/syncer_proto_util.h b/sync/engine/syncer_proto_util.h
index 14a3791325edc8dc72794db87db28cc2e53b091e..3856509922701e5e6de5a7bd8258cdd7791e5e50 100644
--- a/sync/engine/syncer_proto_util.h
+++ b/sync/engine/syncer_proto_util.h
@@ -33,6 +33,7 @@ class SyncSessionContext;
}
class ClientToServerMessage;
+class ThrottledDataTypeTracker;
class ServerConnectionManager;
class SyncEntity;
class CommitResponse_EntryResponse;
@@ -118,10 +119,11 @@ class SyncerProtoUtil {
static base::TimeDelta GetThrottleDelay(
const sync_pb::ClientToServerResponse& response);
- static void HandleThrottleError(const SyncProtocolError& error,
- const base::TimeTicks& throttled_until,
- sessions::SyncSessionContext* context,
- sessions::SyncSession::Delegate* delegate);
+ static void HandleThrottleError(
+ const SyncProtocolError& error,
+ const base::TimeTicks& throttled_until,
+ browser_sync::ThrottledDataTypeTracker* tracker,
+ sessions::SyncSession::Delegate* delegate);
friend class SyncerProtoUtilTest;
FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday);
« no previous file with comments | « sync/engine/syncer.cc ('k') | sync/engine/syncer_proto_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698