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

Side by Side Diff: components/sync/protocol/sync.proto

Issue 2380143002: [Sync] Enable Compression from Client to Server by experiment (Closed)
Patch Set: rebase Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Sync protocol for communication between sync client and server. 5 // Sync protocol for communication between sync client and server.
6 6
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change
8 // any fields in this file. 8 // any fields in this file.
9 9
10 syntax = "proto2"; 10 syntax = "proto2";
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 424
425 // The configuration of this client at commit time. Used by the server to 425 // The configuration of this client at commit time. Used by the server to
426 // make commit-time decisions about how to process datatypes that might 426 // make commit-time decisions about how to process datatypes that might
427 // involve server-side interaction, and e.g require explicit user intent for 427 // involve server-side interaction, and e.g require explicit user intent for
428 // syncing a particular data type regardless of whether a commit for that 428 // syncing a particular data type regardless of whether a commit for that
429 // datatype is currently being sent up. 429 // datatype is currently being sent up.
430 optional ClientConfigParams config_params = 4; 430 optional ClientConfigParams config_params = 4;
431 431
432 // Set of optional per-client datatype contexts. 432 // Set of optional per-client datatype contexts.
433 repeated DataTypeContext client_contexts = 5; 433 repeated DataTypeContext client_contexts = 5;
434
435 // This field need to be 256 bytes if set. This attempts to mitigate CRIME
436 // attacks when sync communicate from client to server with compression. So if
437 // compression is used, this need to set a 256 random ASCII bytes. If no
438 // compression, this field should not be set. The server can ignore the
439 // padding.
440 optional string padding = 6;
434 }; 441 };
435 442
436 // This message communicates additional per-type information related to 443 // This message communicates additional per-type information related to
437 // requests with origin GU_TRIGGER. This message is not relevant when any 444 // requests with origin GU_TRIGGER. This message is not relevant when any
438 // other origin value is used. 445 // other origin value is used.
439 // Introduced in M29. 446 // Introduced in M29.
440 message GetUpdateTriggers { 447 message GetUpdateTriggers {
441 // An opaque-to-the-client string of bytes, received through a notification, 448 // An opaque-to-the-client string of bytes, received through a notification,
442 // that the server may interpret as a hint about the location of the latest 449 // that the server may interpret as a hint about the location of the latest
443 // version of the data for this type. 450 // version of the data for this type.
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 message EventResponse {}; 1038 message EventResponse {};
1032 1039
1033 // A message indicating that the sync engine has been disabled on a client. 1040 // A message indicating that the sync engine has been disabled on a client.
1034 message SyncDisabledEvent { 1041 message SyncDisabledEvent {
1035 // The GUID that identifies the sync client. 1042 // The GUID that identifies the sync client.
1036 optional string cache_guid = 1; 1043 optional string cache_guid = 1;
1037 1044
1038 // The store birthday that the client was using before disabling sync. 1045 // The store birthday that the client was using before disabling sync.
1039 optional string store_birthday = 2; 1046 optional string store_birthday = 2;
1040 }; 1047 };
OLDNEW
« components/sync/BUILD.gn ('K') | « components/sync/engine_impl/commit.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698