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 // 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"; |
11 | 11 |
12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
13 option retain_unknown_fields = true; | 13 option retain_unknown_fields = true; |
14 | 14 |
15 package sync_pb; | 15 package sync_pb; |
16 | 16 |
17 import "app_notification_specifics.proto"; | 17 import "app_notification_specifics.proto"; |
18 import "app_setting_specifics.proto"; | 18 import "app_setting_specifics.proto"; |
19 import "app_specifics.proto"; | 19 import "app_specifics.proto"; |
20 import "autofill_specifics.proto"; | 20 import "autofill_specifics.proto"; |
21 import "bookmark_specifics.proto"; | 21 import "bookmark_specifics.proto"; |
| 22 import "get_updates_caller_info.proto"; |
22 import "extension_setting_specifics.proto"; | 23 import "extension_setting_specifics.proto"; |
23 import "extension_specifics.proto"; | 24 import "extension_specifics.proto"; |
24 import "nigori_specifics.proto"; | 25 import "nigori_specifics.proto"; |
25 import "password_specifics.proto"; | 26 import "password_specifics.proto"; |
26 import "preference_specifics.proto"; | 27 import "preference_specifics.proto"; |
27 import "search_engine_specifics.proto"; | 28 import "search_engine_specifics.proto"; |
28 import "session_specifics.proto"; | 29 import "session_specifics.proto"; |
29 import "theme_specifics.proto"; | 30 import "theme_specifics.proto"; |
30 import "typed_url_specifics.proto"; | 31 import "typed_url_specifics.proto"; |
31 import "encryption.proto"; | 32 import "encryption.proto"; |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 message CommitMessage { | 310 message CommitMessage { |
310 repeated SyncEntity entries = 1; | 311 repeated SyncEntity entries = 1; |
311 | 312 |
312 // A GUID that identifies the committing sync client. This value will be | 313 // A GUID that identifies the committing sync client. This value will be |
313 // returned as originator_cache_guid for any new items. | 314 // returned as originator_cache_guid for any new items. |
314 optional string cache_guid = 2; | 315 optional string cache_guid = 2; |
315 | 316 |
316 repeated ChromiumExtensionsActivity extensions_activity = 3; | 317 repeated ChromiumExtensionsActivity extensions_activity = 3; |
317 }; | 318 }; |
318 | 319 |
319 message GetUpdatesCallerInfo { | |
320 enum GetUpdatesSource { | |
321 UNKNOWN = 0; // The source was not set by the caller. | |
322 FIRST_UPDATE = 1; // First request after browser restart. Not to | |
323 // be confused with "NEW_CLIENT". | |
324 LOCAL = 2; // The source of the update was a local change. | |
325 NOTIFICATION = 3; // The source of the update was a p2p notification. | |
326 PERIODIC = 4; // The source of the update was periodic polling. | |
327 SYNC_CYCLE_CONTINUATION = 5; // The source of the update was a | |
328 // continuation of a previous update. | |
329 CLEAR_PRIVATE_DATA = 6; // Source is a call to remove all private data | |
330 NEWLY_SUPPORTED_DATATYPE = 7; // The client is in configuration mode | |
331 // because it's syncing all datatypes, and | |
332 // support for a new datatype was recently | |
333 // released via a software auto-update. | |
334 MIGRATION = 8; // The client is in configuration mode because a | |
335 // MIGRATION_DONE error previously returned by the | |
336 // server necessitated resynchronization. | |
337 NEW_CLIENT = 9; // The client is in configuration mode because the | |
338 // user enabled sync for the first time. Not to be | |
339 // confused with FIRST_UPDATE. | |
340 RECONFIGURATION = 10; // The client is in configuration mode because the | |
341 // user opted to sync a different set of datatypes. | |
342 DATATYPE_REFRESH = 11; // A datatype has requested a refresh. This is | |
343 // typically used when datatype's have custom | |
344 // sync UI, e.g. sessions. | |
345 } | |
346 | |
347 required GetUpdatesSource source = 1; | |
348 | |
349 // True only if notifications were enabled for this GetUpdateMessage. | |
350 optional bool notifications_enabled = 2; | |
351 }; | |
352 | |
353 message DataTypeProgressMarker { | 320 message DataTypeProgressMarker { |
354 // An integer identifying the data type whose progress is tracked by this | 321 // An integer identifying the data type whose progress is tracked by this |
355 // marker. The legitimate values of this field correspond to the protobuf | 322 // marker. The legitimate values of this field correspond to the protobuf |
356 // field numbers of all EntitySpecifics fields supported by the server. | 323 // field numbers of all EntitySpecifics fields supported by the server. |
357 // These values are externally declared in per-datatype .proto files. | 324 // These values are externally declared in per-datatype .proto files. |
358 optional int32 data_type_id = 1; | 325 optional int32 data_type_id = 1; |
359 | 326 |
360 // An opaque-to-the-client sequence of bytes that the server may interpret | 327 // An opaque-to-the-client sequence of bytes that the server may interpret |
361 // as an indicator of the client's knowledge state. If this is empty or | 328 // as an indicator of the client's knowledge state. If this is empty or |
362 // omitted by the client, it indicates that the client is initiating a | 329 // omitted by the client, it indicates that the client is initiating a |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 optional string store_birthday = 6; | 640 optional string store_birthday = 6; |
674 | 641 |
675 optional ClientCommand client_command = 7; | 642 optional ClientCommand client_command = 7; |
676 optional ProfilingData profiling_data = 8; | 643 optional ProfilingData profiling_data = 8; |
677 | 644 |
678 // The data types whose storage has been migrated. Present when the value of | 645 // The data types whose storage has been migrated. Present when the value of |
679 // error_code is MIGRATION_DONE. | 646 // error_code is MIGRATION_DONE. |
680 repeated int32 migrated_data_type_id = 12; | 647 repeated int32 migrated_data_type_id = 12; |
681 }; | 648 }; |
682 | 649 |
OLD | NEW |