Index: chrome/browser/sync/engine/syncer_proto_util.h |
diff --git a/chrome/browser/sync/engine/syncer_proto_util.h b/chrome/browser/sync/engine/syncer_proto_util.h |
index 325a795261a96d3af42ad10a490069c3a937719e..10decf9bcdf9a5934a33eca379eaa4c7e4a1307d 100644 |
--- a/chrome/browser/sync/engine/syncer_proto_util.h |
+++ b/chrome/browser/sync/engine/syncer_proto_util.h |
@@ -9,6 +9,8 @@ |
#include <string> |
#include "base/gtest_prod_util.h" |
akalin
2011/11/21 20:04:26
#include "base/time.h"
lipalani1
2011/11/21 21:55:38
Done.
|
+#include "chrome/browser/sync/sessions/sync_session.h" |
+#include "chrome/browser/sync/sessions/sync_session_context.h" |
akalin
2011/11/21 20:04:26
forward-declare context and syncprotocolerror
lipalani1
2011/11/21 21:55:38
Done.
|
#include "chrome/browser/sync/syncable/blob.h" |
#include "chrome/browser/sync/syncable/model_type.h" |
@@ -115,10 +117,18 @@ class SyncerProtoUtil { |
static base::TimeDelta GetThrottleDelay( |
const sync_pb::ClientToServerResponse& response); |
+ static void SyncerProtoUtil::HandleThrottling( |
akalin
2011/11/21 20:04:26
remove SyncerProtoUtil::
lipalani1
2011/11/21 21:55:38
Done.
|
+ const SyncProtocolError& error, |
+ const base::TimeTicks& throttled_until, |
+ sessions::SyncSessionContext* context, |
+ sessions::SyncSession::Delegate* delegate); |
+ |
friend class SyncerProtoUtilTest; |
FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday); |
FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders); |
FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyResponseBirthday); |
+ FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingNoDatatypes); |
+ FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingWithDatatypes); |
DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil); |
}; |