summaryrefslogtreecommitdiffstats
path: root/sync/protocol
diff options
context:
space:
mode:
authormaxbogue <maxbogue@chromium.org>2015-02-19 20:08:17 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-20 04:09:12 +0000
commit334611eb6ddaf09e7f3fade6ce82b18dbd33a96e (patch)
treef308bc757f672ba2d7e31d3344ef764da21ea4ac /sync/protocol
parent150281d62a5fc771503d45a00746c62c7bb31535 (diff)
downloadchromium_src-334611eb6ddaf09e7f3fade6ce82b18dbd33a96e.zip
chromium_src-334611eb6ddaf09e7f3fade6ce82b18dbd33a96e.tar.gz
chromium_src-334611eb6ddaf09e7f3fade6ce82b18dbd33a96e.tar.bz2
Add PSS::RemoveClientFromServer() and call it on STOP_SYNC shutdowns.
When sync is disabled on a device, we need to notify the server that the client is no longer active. BUG=419552 Review URL: https://codereview.chromium.org/864993002 Cr-Commit-Position: refs/heads/master@{#317236}
Diffstat (limited to 'sync/protocol')
-rw-r--r--sync/protocol/sync.proto18
1 files changed, 18 insertions, 0 deletions
diff --git a/sync/protocol/sync.proto b/sync/protocol/sync.proto
index 2c79c22..78f9d40 100644
--- a/sync/protocol/sync.proto
+++ b/sync/protocol/sync.proto
@@ -976,3 +976,21 @@ message ClientToServerResponse {
// sent with any subsequent ClientToServerMessages.
optional ChipBag new_bag_of_chips = 14;
};
+
+// A message to notify the server of certain sync events. Idempotent. Send these
+// to the /event endpoint.
+message EventRequest {
+ optional SyncDisabledEvent sync_disabled = 1;
+};
+
+message EventResponse {
+};
+
+// A message indicating that the sync engine has been disabled on a client.
+message SyncDisabledEvent {
+ // The GUID that identifies the sync client.
+ optional string cache_guid = 1;
+
+ // The store birthday that the client was using before disabling sync.
+ optional string store_birthday = 2;
+};