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

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

Issue 1140653006: [sync] Add WalletMetadataSpecifics protobuf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work Created 5 years, 7 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
« no previous file with comments | « sync/protocol/proto_value_conversions_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 message EntitySpecifics { 66 message EntitySpecifics {
67 // If a datatype is encrypted, this field will contain the encrypted 67 // If a datatype is encrypted, this field will contain the encrypted
68 // original EntitySpecifics. The extension for the datatype will continue 68 // original EntitySpecifics. The extension for the datatype will continue
69 // to exist, but contain only the default values. 69 // to exist, but contain only the default values.
70 // Note that currently passwords employ their own legacy encryption scheme and 70 // Note that currently passwords employ their own legacy encryption scheme and
71 // do not use this field. 71 // do not use this field.
72 optional EncryptedData encrypted = 1; 72 optional EncryptedData encrypted = 1;
73 73
74 // To add new datatype-specific fields to the protocol, extend 74 // To add new datatype-specific fields to the protocol, extend
75 // EntitySpecifics. First, pick a non-colliding tag number by 75 // EntitySpecifics. First, pick a non-colliding tag number by
76 // picking a revision number of one of your past commits 76 // picking a Cr-Commit-Position of one of your past commits
77 // to src.chromium.org. Then, in a different protocol buffer 77 // to src.chromium.org. Then, in a different protocol buffer
78 // definition, define your message type, and add an optional field 78 // definition, define your message type, and add an optional field
79 // to the list below using the unique tag value you selected. 79 // to the list below using the unique tag value you selected.
80 // 80 //
81 // optional MyDatatypeSpecifics my_datatype = 32222; 81 // optional MyDatatypeSpecifics my_datatype = 32222;
82 // 82 //
83 // where: 83 // where:
84 // - 32222 is the non-colliding tag number you picked earlier. 84 // - 32222 is the non-colliding tag number you picked earlier.
85 // - MyDatatypeSpecifics is the type (probably a message type defined 85 // - MyDatatypeSpecifics is the type (probably a message type defined
86 // in your new .proto file) that you want to associate with each 86 // in your new .proto file) that you want to associate with each
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 optional FaviconImageSpecifics favicon_image = 182019; 126 optional FaviconImageSpecifics favicon_image = 182019;
127 optional ManagedUserSettingSpecifics managed_user_setting = 186662; 127 optional ManagedUserSettingSpecifics managed_user_setting = 186662;
128 optional ManagedUserSpecifics managed_user = 194582; 128 optional ManagedUserSpecifics managed_user = 194582;
129 optional ManagedUserSharedSettingSpecifics managed_user_shared_setting = 129 optional ManagedUserSharedSettingSpecifics managed_user_shared_setting =
130 202026; 130 202026;
131 optional ManagedUserWhitelistSpecifics managed_user_whitelist = 306060; 131 optional ManagedUserWhitelistSpecifics managed_user_whitelist = 306060;
132 optional ArticleSpecifics article = 223759; 132 optional ArticleSpecifics article = 223759;
133 optional AppListSpecifics app_list = 229170; 133 optional AppListSpecifics app_list = 229170;
134 optional WifiCredentialSpecifics wifi_credential = 218175; 134 optional WifiCredentialSpecifics wifi_credential = 218175;
135 optional AutofillWalletSpecifics autofill_wallet = 306270; 135 optional AutofillWalletSpecifics autofill_wallet = 306270;
136 optional WalletMetadataSpecifics wallet_metadata = 330441;
136 } 137 }
137 138
138 message SyncEntity { 139 message SyncEntity {
139 // This item's identifier. In a commit of a new item, this will be a 140 // This item's identifier. In a commit of a new item, this will be a
140 // client-generated ID. If the commit succeeds, the server will generate 141 // client-generated ID. If the commit succeeds, the server will generate
141 // a globally unique ID and return it to the committing client in the 142 // a globally unique ID and return it to the committing client in the
142 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse, 143 // CommitResponse.EntryResponse. In the context of a GetUpdatesResponse,
143 // |id_string| is always the server generated ID. The original 144 // |id_string| is always the server generated ID. The original
144 // client-generated ID is preserved in the |originator_client_id| field. 145 // client-generated ID is preserved in the |originator_client_id| field.
145 // Present in both GetUpdatesResponse and CommitMessage. 146 // Present in both GetUpdatesResponse and CommitMessage.
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 }; 991 };
991 992
992 // A message indicating that the sync engine has been disabled on a client. 993 // A message indicating that the sync engine has been disabled on a client.
993 message SyncDisabledEvent { 994 message SyncDisabledEvent {
994 // The GUID that identifies the sync client. 995 // The GUID that identifies the sync client.
995 optional string cache_guid = 1; 996 optional string cache_guid = 1;
996 997
997 // The store birthday that the client was using before disabling sync. 998 // The store birthday that the client was using before disabling sync.
998 optional string store_birthday = 2; 999 optional string store_birthday = 2;
999 }; 1000 };
OLDNEW
« no previous file with comments | « sync/protocol/proto_value_conversions_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698