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

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

Issue 387983004: sync: Support non-blocking initial sync in proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fix comment Created 6 years, 5 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 | Annotate | Revision Log
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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 // associated with user actions. For example, at the time of this writing 470 // associated with user actions. For example, at the time of this writing
471 // the most common (only?) source of refresh requests is when a user opens 471 // the most common (only?) source of refresh requests is when a user opens
472 // the new tab page on a platform that does not support sessions 472 // the new tab page on a platform that does not support sessions
473 // invalidations. 473 // invalidations.
474 // Introduced in M29. 474 // Introduced in M29.
475 optional int64 datatype_refresh_nudges = 5; 475 optional int64 datatype_refresh_nudges = 5;
476 476
477 // This flag is set if the invalidation server reports that it may have 477 // This flag is set if the invalidation server reports that it may have
478 // dropped some invalidations at some point. Introduced in M33. 478 // dropped some invalidations at some point. Introduced in M33.
479 optional bool server_dropped_hints = 6; 479 optional bool server_dropped_hints = 6;
480
481 // This flag is set if this GetUpdate request is due at least in part due
482 // to the fact that this type has not finished initial sync yet, and the
483 // client would like to initialize itself with the server data.
484 //
485 // Only some types support performing an initial sync as part of a normal
486 // GetUpdate request. Many types must be in configure mode when fetching
487 // initial sync data.
488 //
489 // Introduced in M38.
490 optional bool initial_sync_in_progress = 7;
Nicolas Zea 2014/07/17 16:58:08 I wonder, should we specify which types are reques
rlarocque 2014/07/17 18:58:06 The triggers are per-type. I think they're co-loc
480 } 491 }
481 492
482 message GarbageCollectionDirective { 493 message GarbageCollectionDirective {
483 enum Type { 494 enum Type {
484 UNKNOWN = 0; 495 UNKNOWN = 0;
485 VERSION_WATERMARK = 1; 496 VERSION_WATERMARK = 1;
486 AGE_WATERMARK = 2; 497 AGE_WATERMARK = 2;
487 MAX_ITEM_COUNT = 3; 498 MAX_ITEM_COUNT = 3;
488 } 499 }
489 500
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 // Currently only meaningful if |error_type| is throttled. If this field 958 // Currently only meaningful if |error_type| is throttled. If this field
948 // is absent then the whole client (all datatypes) is throttled. 959 // is absent then the whole client (all datatypes) is throttled.
949 repeated int32 error_data_type_ids = 5; 960 repeated int32 error_data_type_ids = 5;
950 } 961 }
951 optional Error error = 13; 962 optional Error error = 13;
952 963
953 // The new per-client state for this client. If set, should be persisted and 964 // The new per-client state for this client. If set, should be persisted and
954 // sent with any subsequent ClientToServerMessages. 965 // sent with any subsequent ClientToServerMessages.
955 optional ChipBag new_bag_of_chips = 14; 966 optional ChipBag new_bag_of_chips = 14;
956 }; 967 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698