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

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

Issue 1140653006: [sync] Add WalletMetadataSpecifics protobuf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | sync/protocol/proto_enum_conversions.h » ('j') | sync/protocol/sync.proto » ('J')
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 datatype extension for autofill. 5 // Sync protocol datatype extension for autofill.
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 optional WalletInfoType type = 1; 165 optional WalletInfoType type = 1;
166 166
167 // This field exists if and only if the "type" field equals to 167 // This field exists if and only if the "type" field equals to
168 // MASKED_CREDIT_CARD. 168 // MASKED_CREDIT_CARD.
169 optional WalletMaskedCreditCard masked_card = 2; 169 optional WalletMaskedCreditCard masked_card = 2;
170 170
171 // This field exists if and only if the "type" field equals to ADDRESS. 171 // This field exists if and only if the "type" field equals to ADDRESS.
172 optional WalletPostalAddress address = 3; 172 optional WalletPostalAddress address = 3;
173 } 173 }
174
175 // Wallet card and address usage information that can be synced.
176 message WalletMetadataSpecifics {
177 enum Type {
178 UNKNOWN = 0;
179 CARD = 1;
180 ADDRESS = 2;
181 }
182
183 // The type of the Wallet metadata.
184 optional Type type = 1;
185
186 // Unique ID string of the corresponding Wallet data.
Nicolas Zea 2015/05/20 21:41:45 nit: Information about how it's generated?
please use gerrit instead 2015/05/20 23:37:39 Done.
187 optional string id = 2;
188
189 // The number of times that this Wallet card or address was used.
190 optional int64 use_count = 3;
191
192 // The last use date of this Wallet card or address.
193 optional int64 use_date = 4;
Nicolas Zea 2015/05/20 21:41:45 nit: What are the units for this? Milliseconds sin
please use gerrit instead 2015/05/20 23:37:39 Done.
please use gerrit instead 2015/05/20 23:39:12 As documented here: https://code.google.com/p/chro
194 }
OLDNEW
« no previous file with comments | « no previous file | sync/protocol/proto_enum_conversions.h » ('j') | sync/protocol/sync.proto » ('J')

Powered by Google App Engine
This is Rietveld 408576698