summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public/util
diff options
context:
space:
mode:
authorgangwu <gangwu@chromium.org>2015-02-26 16:39:04 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-27 00:40:20 +0000
commit7ee948bfa70124e6995e4159790bbe0d3d559d2a (patch)
tree356fd3dbca8d88368956530680feebde68554d28 /sync/internal_api/public/util
parent7d26668a97d0b864d822dafa8aa4f4a394e5aabd (diff)
downloadchromium_src-7ee948bfa70124e6995e4159790bbe0d3d559d2a.zip
chromium_src-7ee948bfa70124e6995e4159790bbe0d3d559d2a.tar.gz
chromium_src-7ee948bfa70124e6995e4159790bbe0d3d559d2a.tar.bz2
[Sync] Add support for GetUpdates Throttling
During GetUpdates, if some data types got throttled, client should backoff those data types and keep going with other unthrottled data types. BUG=416992 Review URL: https://codereview.chromium.org/955693004 Cr-Commit-Position: refs/heads/master@{#318356}
Diffstat (limited to 'sync/internal_api/public/util')
-rw-r--r--sync/internal_api/public/util/syncer_error.cc1
-rw-r--r--sync/internal_api/public/util/syncer_error.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/sync/internal_api/public/util/syncer_error.cc b/sync/internal_api/public/util/syncer_error.cc
index 8130b1e..5c59e92 100644
--- a/sync/internal_api/public/util/syncer_error.cc
+++ b/sync/internal_api/public/util/syncer_error.cc
@@ -28,6 +28,7 @@ const char* GetSyncerErrorString(SyncerError value) {
ENUM_CASE(SERVER_RESPONSE_VALIDATION_FAILED);
ENUM_CASE(SERVER_RETURN_DISABLED_BY_ADMIN);
ENUM_CASE(SERVER_RETURN_USER_ROLLBACK);
+ ENUM_CASE(SERVER_RETURN_PARTIAL_FAILURE);
ENUM_CASE(SERVER_MORE_TO_DOWNLOAD);
ENUM_CASE(DATATYPE_TRIGGERED_RETRY);
ENUM_CASE(SYNCER_OK);
diff --git a/sync/internal_api/public/util/syncer_error.h b/sync/internal_api/public/util/syncer_error.h
index 05ad963..9a9219f 100644
--- a/sync/internal_api/public/util/syncer_error.h
+++ b/sync/internal_api/public/util/syncer_error.h
@@ -31,6 +31,7 @@ enum SYNC_EXPORT_PRIVATE SyncerError {
SERVER_RESPONSE_VALIDATION_FAILED,
SERVER_RETURN_DISABLED_BY_ADMIN,
SERVER_RETURN_USER_ROLLBACK,
+ SERVER_RETURN_PARTIAL_FAILURE,
// A datatype decided the sync cycle needed to be performed again.
DATATYPE_TRIGGERED_RETRY,