Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / sync / protocol / get_updates_caller_info.proto
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.
4
5 syntax = "proto2";
6
7 option optimize_for = LITE_RUNTIME;
8 option retain_unknown_fields = true;
9
10 package sync_pb;
11
12 message GetUpdatesCallerInfo {
13   // This message was deprecated in M28.  The preferred represenation of this
14   // information is now the GetUpdatesOrigin enum, which is defined in
15   // sync_enums.proto.
16   enum GetUpdatesSource {
17     UNKNOWN = 0;  // The source was not set by the caller.
18     FIRST_UPDATE = 1;  // First request after browser restart.  Not to
19                        // be confused with "NEW_CLIENT".
20     LOCAL = 2;  // The source of the update was a local change.
21     NOTIFICATION = 3;  // The source of the update was a p2p notification.
22     PERIODIC = 4;  // The source of the update was periodic polling.
23     SYNC_CYCLE_CONTINUATION = 5;  // The source of the update was a
24                                   // continuation of a previous sync cycle.
25                                   // No longer sent as of M24.
26
27     // This value is deprecated and was never used in production.
28     // CLEAR_PRIVATE_DATA = 6;
29
30     NEWLY_SUPPORTED_DATATYPE = 7;   // The client is in configuration mode
31                                     // because it's syncing all datatypes, and
32                                     // support for a new datatype was recently
33                                     // released via a software auto-update.
34     MIGRATION = 8;         // The client is in configuration mode because a
35                            // MIGRATION_DONE error previously returned by the
36                            // server necessitated resynchronization.
37     NEW_CLIENT = 9;        // The client is in configuration mode because the
38                            // user enabled sync for the first time.  Not to be
39                            // confused with FIRST_UPDATE.
40     RECONFIGURATION = 10;  // The client is in configuration mode because the
41                            // user opted to sync a different set of datatypes.
42     DATATYPE_REFRESH = 11;    // A datatype has requested a refresh. This is
43                               // typically used when datatype's have custom
44                               // sync UI, e.g. sessions.
45     RETRY = 13;  // A follow-up GU to pick up updates missed by previous GU.
46     PROGRAMMATIC = 14;     // The client is programmatically enabling/disabling
47                            // a type, typically for error handling purposes.
48   }
49
50   required GetUpdatesSource source = 1;
51
52   // True only if notifications were enabled for this GetUpdateMessage.
53   optional bool notifications_enabled = 2;
54 };
55