OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 // response is returned to the client indicating that the server has received | 412 // response is returned to the client indicating that the server has received |
413 // the request and has begun to clear data. | 413 // the request and has begun to clear data. |
414 message ClearUserDataMessage { | 414 message ClearUserDataMessage { |
415 } | 415 } |
416 | 416 |
417 message ClearUserDataResponse { | 417 message ClearUserDataResponse { |
418 } | 418 } |
419 | 419 |
420 message ClientToServerMessage { | 420 message ClientToServerMessage { |
421 required string share = 1; | 421 required string share = 1; |
422 optional int32 protocol_version = 2 [default = 28]; | 422 optional int32 protocol_version = 2 [default = 29]; |
423 enum Contents { | 423 enum Contents { |
424 COMMIT = 1; | 424 COMMIT = 1; |
425 GET_UPDATES = 2; | 425 GET_UPDATES = 2; |
426 AUTHENTICATE = 3; | 426 AUTHENTICATE = 3; |
427 CLEAR_DATA = 4; | 427 CLEAR_DATA = 4; |
428 } | 428 } |
429 | 429 |
430 required Contents message_contents = 3; | 430 required Contents message_contents = 3; |
431 optional CommitMessage commit = 4; | 431 optional CommitMessage commit = 4; |
432 optional GetUpdatesMessage get_updates = 5; | 432 optional GetUpdatesMessage get_updates = 5; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 optional string store_birthday = 6; | 636 optional string store_birthday = 6; |
637 | 637 |
638 optional ClientCommand client_command = 7; | 638 optional ClientCommand client_command = 7; |
639 optional ProfilingData profiling_data = 8; | 639 optional ProfilingData profiling_data = 8; |
640 | 640 |
641 // The data types whose storage has been migrated. Present when the value of | 641 // The data types whose storage has been migrated. Present when the value of |
642 // error_code is MIGRATION_DONE. | 642 // error_code is MIGRATION_DONE. |
643 repeated int32 migrated_data_type_id = 12; | 643 repeated int32 migrated_data_type_id = 12; |
644 }; | 644 }; |
645 | 645 |
OLD | NEW |