OLD | NEW |
(Empty) | |
| 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 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 update. |
| 22 CLEAR_PRIVATE_DATA = 6; // Source is a call to remove all private data |
| 23 NEWLY_SUPPORTED_DATATYPE = 7; // The client is in configuration mode |
| 24 // because it's syncing all datatypes, and |
| 25 // support for a new datatype was recently |
| 26 // released via a software auto-update. |
| 27 MIGRATION = 8; // The client is in configuration mode because a |
| 28 // MIGRATION_DONE error previously returned by the |
| 29 // server necessitated resynchronization. |
| 30 NEW_CLIENT = 9; // The client is in configuration mode because the |
| 31 // user enabled sync for the first time. Not to be |
| 32 // confused with FIRST_UPDATE. |
| 33 RECONFIGURATION = 10; // The client is in configuration mode because the |
| 34 // user opted to sync a different set of datatypes. |
| 35 DATATYPE_REFRESH = 11; // A datatype has requested a refresh. This is |
| 36 // typically used when datatype's have custom |
| 37 // sync UI, e.g. sessions. |
| 38 } |
| 39 |
| 40 required GetUpdatesSource source = 1; |
| 41 |
| 42 // True only if notifications were enabled for this GetUpdateMessage. |
| 43 optional bool notifications_enabled = 2; |
| 44 }; |
| 45 |
OLD | NEW |