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
3 // found in the LICENSE file.
7 option optimize_for = LITE_RUNTIME;
8 option retain_unknown_fields = true;
12 message GetUpdatesCallerInfo {
13 enum GetUpdatesSource {
14 UNKNOWN = 0; // The source was not set by the caller.
15 FIRST_UPDATE = 1; // First request after browser restart. Not to
16 // be confused with "NEW_CLIENT".
17 LOCAL = 2; // The source of the update was a local change.
18 NOTIFICATION = 3; // The source of the update was a p2p notification.
19 PERIODIC = 4; // The source of the update was periodic polling.
20 SYNC_CYCLE_CONTINUATION = 5; // The source of the update was a
21 // continuation of a previous sync cycle.
22 // No longer sent as of M24.
24 // This value is deprecated and was never used in production.
25 // CLEAR_PRIVATE_DATA = 6;
27 NEWLY_SUPPORTED_DATATYPE = 7; // The client is in configuration mode
28 // because it's syncing all datatypes, and
29 // support for a new datatype was recently
30 // released via a software auto-update.
31 MIGRATION = 8; // The client is in configuration mode because a
32 // MIGRATION_DONE error previously returned by the
33 // server necessitated resynchronization.
34 NEW_CLIENT = 9; // The client is in configuration mode because the
35 // user enabled sync for the first time. Not to be
36 // confused with FIRST_UPDATE.
37 RECONFIGURATION = 10; // The client is in configuration mode because the
38 // user opted to sync a different set of datatypes.
39 DATATYPE_REFRESH = 11; // A datatype has requested a refresh. This is
40 // typically used when datatype's have custom
41 // sync UI, e.g. sessions.
44 required GetUpdatesSource source = 1;
46 // True only if notifications were enabled for this GetUpdateMessage.
47 optional bool notifications_enabled = 2;