Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: sync/protocol/sync.proto

Issue 674633002: sync: add WIFI_CREDENTIALS protobuf, ModelType, and preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@local-master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 import "preference_specifics.proto"; 43 import "preference_specifics.proto";
44 import "priority_preference_specifics.proto"; 44 import "priority_preference_specifics.proto";
45 import "search_engine_specifics.proto"; 45 import "search_engine_specifics.proto";
46 import "session_specifics.proto"; 46 import "session_specifics.proto";
47 import "sync_enums.proto"; 47 import "sync_enums.proto";
48 import "synced_notification_app_info_specifics.proto"; 48 import "synced_notification_app_info_specifics.proto";
49 import "synced_notification_specifics.proto"; 49 import "synced_notification_specifics.proto";
50 import "theme_specifics.proto"; 50 import "theme_specifics.proto";
51 import "typed_url_specifics.proto"; 51 import "typed_url_specifics.proto";
52 import "unique_position.proto"; 52 import "unique_position.proto";
53 import "wifi_credential_specifics.proto";
53 54
54 // Used for inspecting how long we spent performing operations in different 55 // Used for inspecting how long we spent performing operations in different
55 // backends. All times must be in millis. 56 // backends. All times must be in millis.
56 message ProfilingData { 57 message ProfilingData {
57 optional int64 meta_data_write_time = 1; 58 optional int64 meta_data_write_time = 1;
58 optional int64 file_data_write_time = 2; 59 optional int64 file_data_write_time = 2;
59 optional int64 user_lookup_time = 3; 60 optional int64 user_lookup_time = 3;
60 optional int64 meta_data_read_time = 4; 61 optional int64 meta_data_read_time = 4;
61 optional int64 file_data_read_time = 5; 62 optional int64 file_data_read_time = 5;
62 optional int64 total_request_time = 6; 63 optional int64 total_request_time = 6;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 optional DictionarySpecifics dictionary = 170540; 125 optional DictionarySpecifics dictionary = 170540;
125 optional FaviconTrackingSpecifics favicon_tracking = 181534; 126 optional FaviconTrackingSpecifics favicon_tracking = 181534;
126 optional FaviconImageSpecifics favicon_image = 182019; 127 optional FaviconImageSpecifics favicon_image = 182019;
127 optional ManagedUserSettingSpecifics managed_user_setting = 186662; 128 optional ManagedUserSettingSpecifics managed_user_setting = 186662;
128 optional ManagedUserSpecifics managed_user = 194582; 129 optional ManagedUserSpecifics managed_user = 194582;
129 optional ManagedUserSharedSettingSpecifics managed_user_shared_setting = 130 optional ManagedUserSharedSettingSpecifics managed_user_shared_setting =
130 202026; 131 202026;
131 optional ArticleSpecifics article = 223759; 132 optional ArticleSpecifics article = 223759;
132 optional AppListSpecifics app_list = 229170; 133 optional AppListSpecifics app_list = 229170;
133 optional EnhancedBookmarkSpecifics enhanced_bookmark = 294694; 134 optional EnhancedBookmarkSpecifics enhanced_bookmark = 294694;
135 optional WifiCredentialSpecifics wifi_credential = 218175;
134 } 136 }
135 137
136 message SyncEntity { 138 message SyncEntity {
137 // This item's identifier. In a commit of a new item, this will be a 139 // This item's identifier. In a commit of a new item, this will be a
138 // client-generated ID. If the commit succeeds, the server will generate 140 // client-generated ID. If the commit succeeds, the server will generate
139 // a globally unique ID and return it to the committing client in the 141 // a globally unique ID and return it to the committing client in the
140 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, 142 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse,
141 // |id_string| is always the server generated ID. The original 143 // |id_string| is always the server generated ID. The original
142 // client-generated ID is preserved in the |originator_client_id| field. 144 // client-generated ID is preserved in the |originator_client_id| field.
143 // Present in both GetUpdatesResponse and CommitMessage. 145 // Present in both GetUpdatesResponse and CommitMessage.
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 // Currently only meaningful if |error_type| is throttled. If this field 962 // Currently only meaningful if |error_type| is throttled. If this field
961 // is absent then the whole client (all datatypes) is throttled. 963 // is absent then the whole client (all datatypes) is throttled.
962 repeated int32 error_data_type_ids = 5; 964 repeated int32 error_data_type_ids = 5;
963 } 965 }
964 optional Error error = 13; 966 optional Error error = 13;
965 967
966 // The new per-client state for this client. If set, should be persisted and 968 // The new per-client state for this client. If set, should be persisted and
967 // sent with any subsequent ClientToServerMessages. 969 // sent with any subsequent ClientToServerMessages.
968 optional ChipBag new_bag_of_chips = 14; 970 optional ChipBag new_bag_of_chips = 14;
969 }; 971 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698