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"; |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // for the traffic reported in this ChromiumExtensionsActivity. | 363 // for the traffic reported in this ChromiumExtensionsActivity. |
364 optional string extension_id = 1; | 364 optional string extension_id = 1; |
365 | 365 |
366 // How many times the extension successfully invoked a write | 366 // How many times the extension successfully invoked a write |
367 // operation through the bookmarks API since the last CommitMessage. | 367 // operation through the bookmarks API since the last CommitMessage. |
368 optional uint32 bookmark_writes_since_last_commit = 2; | 368 optional uint32 bookmark_writes_since_last_commit = 2; |
369 }; | 369 }; |
370 | 370 |
371 // Client specific configuration information. | 371 // Client specific configuration information. |
372 message ClientConfigParams { | 372 message ClientConfigParams { |
373 // The set of data types this client has enabled. | 373 // The set of data types this client has enabled. Note that this does not |
| 374 // include proxy types, as they do not have protocol field numbers and are |
| 375 // placeholder types that implicitly enable protocol types. |
374 repeated int32 enabled_type_ids = 1; | 376 repeated int32 enabled_type_ids = 1; |
| 377 |
| 378 // Whether the PROXY_TABS proxy datatype is enabled on this client. |
| 379 optional bool tabs_datatype_enabled = 2; |
375 }; | 380 }; |
376 | 381 |
377 message CommitMessage { | 382 message CommitMessage { |
378 repeated SyncEntity entries = 1; | 383 repeated SyncEntity entries = 1; |
379 | 384 |
380 // A GUID that identifies the committing sync client. This value will be | 385 // A GUID that identifies the committing sync client. This value will be |
381 // returned as originator_cache_guid for any new items. | 386 // returned as originator_cache_guid for any new items. |
382 optional string cache_guid = 2; | 387 optional string cache_guid = 2; |
383 | 388 |
384 repeated ChromiumExtensionsActivity extensions_activity = 3; | 389 repeated ChromiumExtensionsActivity extensions_activity = 3; |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 // is absent then the whole client (all datatypes) is throttled. | 765 // is absent then the whole client (all datatypes) is throttled. |
761 repeated int32 error_data_type_ids = 5; | 766 repeated int32 error_data_type_ids = 5; |
762 } | 767 } |
763 optional Error error = 13; | 768 optional Error error = 13; |
764 | 769 |
765 // The new per-client state for this client. If set, should be persisted and | 770 // The new per-client state for this client. If set, should be persisted and |
766 // sent with any subsequent ClientToServerMessages. | 771 // sent with any subsequent ClientToServerMessages. |
767 optional ChipBag new_bag_of_chips = 14; | 772 optional ChipBag new_bag_of_chips = 14; |
768 }; | 773 }; |
769 | 774 |
OLD | NEW |