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

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

Issue 2380143002: [Sync] Enable Compression from Client to Server by experiment (Closed)
Patch Set: use experience to control compression 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.
Nicolas Zea 2016/10/18 20:23:08 Call out that this is a 256 byte random string. A
Gang Wu 2016/10/19 00:06:14 Done.
437 optional string padding = 6;
434 }; 438 };
435 439
436 // This message communicates additional per-type information related to 440 // This message communicates additional per-type information related to
437 // requests with origin GU_TRIGGER. This message is not relevant when any 441 // requests with origin GU_TRIGGER. This message is not relevant when any
438 // other origin value is used. 442 // other origin value is used.
439 // Introduced in M29. 443 // Introduced in M29.
440 message GetUpdateTriggers { 444 message GetUpdateTriggers {
441 // An opaque-to-the-client string of bytes, received through a notification, 445 // 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 446 // that the server may interpret as a hint about the location of the latest
443 // version of the data for this type. 447 // version of the data for this type.
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 message EventResponse {}; 1035 message EventResponse {};
1032 1036
1033 // A message indicating that the sync engine has been disabled on a client. 1037 // A message indicating that the sync engine has been disabled on a client.
1034 message SyncDisabledEvent { 1038 message SyncDisabledEvent {
1035 // The GUID that identifies the sync client. 1039 // The GUID that identifies the sync client.
1036 optional string cache_guid = 1; 1040 optional string cache_guid = 1;
1037 1041
1038 // The store birthday that the client was using before disabling sync. 1042 // The store birthday that the client was using before disabling sync.
1039 optional string store_birthday = 2; 1043 optional string store_birthday = 2;
1040 }; 1044 };
OLDNEW
« components/sync/engine_impl/commit.cc ('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