| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 import "preference_specifics.proto"; | 42 import "preference_specifics.proto"; |
| 43 import "priority_preference_specifics.proto"; | 43 import "priority_preference_specifics.proto"; |
| 44 import "search_engine_specifics.proto"; | 44 import "search_engine_specifics.proto"; |
| 45 import "session_specifics.proto"; | 45 import "session_specifics.proto"; |
| 46 import "sync_enums.proto"; | 46 import "sync_enums.proto"; |
| 47 import "synced_notification_app_info_specifics.proto"; | 47 import "synced_notification_app_info_specifics.proto"; |
| 48 import "synced_notification_specifics.proto"; | 48 import "synced_notification_specifics.proto"; |
| 49 import "theme_specifics.proto"; | 49 import "theme_specifics.proto"; |
| 50 import "typed_url_specifics.proto"; | 50 import "typed_url_specifics.proto"; |
| 51 import "unique_position.proto"; | 51 import "unique_position.proto"; |
| 52 import "wifi_credential_specifics.proto"; |
| 52 | 53 |
| 53 // Used for inspecting how long we spent performing operations in different | 54 // Used for inspecting how long we spent performing operations in different |
| 54 // backends. All times must be in millis. | 55 // backends. All times must be in millis. |
| 55 message ProfilingData { | 56 message ProfilingData { |
| 56 optional int64 meta_data_write_time = 1; | 57 optional int64 meta_data_write_time = 1; |
| 57 optional int64 file_data_write_time = 2; | 58 optional int64 file_data_write_time = 2; |
| 58 optional int64 user_lookup_time = 3; | 59 optional int64 user_lookup_time = 3; |
| 59 optional int64 meta_data_read_time = 4; | 60 optional int64 meta_data_read_time = 4; |
| 60 optional int64 file_data_read_time = 5; | 61 optional int64 file_data_read_time = 5; |
| 61 optional int64 total_request_time = 6; | 62 optional int64 total_request_time = 6; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 optional PriorityPreferenceSpecifics priority_preference = 163425; | 123 optional PriorityPreferenceSpecifics priority_preference = 163425; |
| 123 optional DictionarySpecifics dictionary = 170540; | 124 optional DictionarySpecifics dictionary = 170540; |
| 124 optional FaviconTrackingSpecifics favicon_tracking = 181534; | 125 optional FaviconTrackingSpecifics favicon_tracking = 181534; |
| 125 optional FaviconImageSpecifics favicon_image = 182019; | 126 optional FaviconImageSpecifics favicon_image = 182019; |
| 126 optional ManagedUserSettingSpecifics managed_user_setting = 186662; | 127 optional ManagedUserSettingSpecifics managed_user_setting = 186662; |
| 127 optional ManagedUserSpecifics managed_user = 194582; | 128 optional ManagedUserSpecifics managed_user = 194582; |
| 128 optional ManagedUserSharedSettingSpecifics managed_user_shared_setting = | 129 optional ManagedUserSharedSettingSpecifics managed_user_shared_setting = |
| 129 202026; | 130 202026; |
| 130 optional ArticleSpecifics article = 223759; | 131 optional ArticleSpecifics article = 223759; |
| 131 optional AppListSpecifics app_list = 229170; | 132 optional AppListSpecifics app_list = 229170; |
| 133 optional WifiCredentialSpecifics wifi_credential = 218175; |
| 132 } | 134 } |
| 133 | 135 |
| 134 message SyncEntity { | 136 message SyncEntity { |
| 135 // This item's identifier. In a commit of a new item, this will be a | 137 // This item's identifier. In a commit of a new item, this will be a |
| 136 // client-generated ID. If the commit succeeds, the server will generate | 138 // client-generated ID. If the commit succeeds, the server will generate |
| 137 // a globally unique ID and return it to the committing client in the | 139 // a globally unique ID and return it to the committing client in the |
| 138 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, | 140 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, |
| 139 // |id_string| is always the server generated ID. The original | 141 // |id_string| is always the server generated ID. The original |
| 140 // client-generated ID is preserved in the |originator_client_id| field. | 142 // client-generated ID is preserved in the |originator_client_id| field. |
| 141 // Present in both GetUpdatesResponse and CommitMessage. | 143 // Present in both GetUpdatesResponse and CommitMessage. |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 // Currently only meaningful if |error_type| is throttled. If this field | 960 // Currently only meaningful if |error_type| is throttled. If this field |
| 959 // is absent then the whole client (all datatypes) is throttled. | 961 // is absent then the whole client (all datatypes) is throttled. |
| 960 repeated int32 error_data_type_ids = 5; | 962 repeated int32 error_data_type_ids = 5; |
| 961 } | 963 } |
| 962 optional Error error = 13; | 964 optional Error error = 13; |
| 963 | 965 |
| 964 // The new per-client state for this client. If set, should be persisted and | 966 // The new per-client state for this client. If set, should be persisted and |
| 965 // sent with any subsequent ClientToServerMessages. | 967 // sent with any subsequent ClientToServerMessages. |
| 966 optional ChipBag new_bag_of_chips = 14; | 968 optional ChipBag new_bag_of_chips = 14; |
| 967 }; | 969 }; |
| OLD | NEW |