OLD | NEW |
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 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; |
| 8 option retain_unknown_fields = true; |
| 9 |
7 package sync_pb; | 10 package sync_pb; |
8 | 11 |
9 message GetUpdatesCallerInfo { | 12 message GetUpdatesCallerInfo { |
10 enum GetUpdatesSource { | 13 enum GetUpdatesSource { |
11 UNKNOWN = 0; // The source was not set by the caller. | 14 UNKNOWN = 0; // The source was not set by the caller. |
12 FIRST_UPDATE = 1; // First request after browser restart. Not to | 15 FIRST_UPDATE = 1; // First request after browser restart. Not to |
13 // be confused with "NEW_CLIENT". | 16 // be confused with "NEW_CLIENT". |
14 LOCAL = 2; // The source of the update was a local change. | 17 LOCAL = 2; // The source of the update was a local change. |
15 NOTIFICATION = 3; // The source of the update was a p2p notification. | 18 NOTIFICATION = 3; // The source of the update was a p2p notification. |
16 PERIODIC = 4; // The source of the update was periodic polling. | 19 PERIODIC = 4; // The source of the update was periodic polling. |
(...skipping 20 matching lines...) Expand all Loading... |
37 // typically used when datatype's have custom | 40 // typically used when datatype's have custom |
38 // sync UI, e.g. sessions. | 41 // sync UI, e.g. sessions. |
39 } | 42 } |
40 | 43 |
41 required GetUpdatesSource source = 1; | 44 required GetUpdatesSource source = 1; |
42 | 45 |
43 // True only if notifications were enabled for this GetUpdateMessage. | 46 // True only if notifications were enabled for this GetUpdateMessage. |
44 optional bool notifications_enabled = 2; | 47 optional bool notifications_enabled = 2; |
45 }; | 48 }; |
46 | 49 |
OLD | NEW |