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

Unified Diff: chrome/browser/sync/engine/syncer_proto_util.h

Issue 8595023: [Sync] Parse and save per-data type throttle data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 1 month 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
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..21601df6636685438d95697d5fdbe407696bdb41 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"
+#include "base/time.h"
+#include "chrome/browser/sync/sessions/sync_session.h"
#include "chrome/browser/sync/syncable/blob.h"
#include "chrome/browser/sync/syncable/model_type.h"
@@ -25,7 +27,8 @@ class EntitySpecifics;
namespace browser_sync {
namespace sessions {
-class SyncSession;
+class SyncerProtoUtil;
akalin 2011/11/21 22:36:04 don't you mean SyncProtocolError?
lipalani1 2011/11/22 00:47:36 ah I think the file has been added by some other f
+class SyncSessionContext;
}
class ClientToServerMessage;
@@ -115,10 +118,17 @@ class SyncerProtoUtil {
static base::TimeDelta GetThrottleDelay(
const sync_pb::ClientToServerResponse& response);
+ static void HandleThrottling(const SyncProtocolError& error,
akalin 2011/11/21 22:36:04 I think HandleThrottleError is a better name
lipalani1 2011/11/22 00:47:36 Done.
+ 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);
};
« no previous file with comments | « no previous file | chrome/browser/sync/engine/syncer_proto_util.cc » ('j') | chrome/browser/sync/engine/syncer_proto_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698