summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/protocol
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 01:33:07 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 01:33:07 +0000
commit403d62efdc9bb84ad624c3f54fff604f50217c4e (patch)
tree58bddccffe8ed67c44ab69ee940208490f771d58 /chrome/browser/sync/protocol
parentbf5b77eace70311d937c5e3a29293255c28fcca2 (diff)
downloadchromium_src-403d62efdc9bb84ad624c3f54fff604f50217c4e.zip
chromium_src-403d62efdc9bb84ad624c3f54fff604f50217c4e.tar.gz
chromium_src-403d62efdc9bb84ad624c3f54fff604f50217c4e.tar.bz2
New autofill_specifics for autofill++ support.
Review URL: http://codereview.chromium.org/1581001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/protocol')
-rw-r--r--chrome/browser/sync/protocol/autofill_specifics.proto72
1 files changed, 72 insertions, 0 deletions
diff --git a/chrome/browser/sync/protocol/autofill_specifics.proto b/chrome/browser/sync/protocol/autofill_specifics.proto
index 4d05dba..beeba56 100644
--- a/chrome/browser/sync/protocol/autofill_specifics.proto
+++ b/chrome/browser/sync/protocol/autofill_specifics.proto
@@ -13,10 +13,82 @@ package sync_pb;
import "sync.proto";
// Properties of autofill sync objects.
+
+// An AutofillProfile.
+message AutofillProfileSpecifics {
+ // User-defined label.
+ optional string label = 1;
+
+ // Contact info.
+ optional string name_first = 2;
+ optional string name_middle = 3;
+ optional string name_last = 4;
+ optional string email_address = 5;
+ optional string company_name = 6;
+
+ // Home address.
+ optional string address_home_line1 = 7;
+ optional string address_home_line2 = 8;
+ optional string address_home_city = 9;
+ optional string address_home_state = 10;
+ optional string address_home_zip = 11;
+ optional string address_home_country = 12;
+
+ // Phone + fax.
+ optional string phone_home_whole_number = 13;
+ optional string phone_fax_whole_number = 14;
+}
+
+message AutofillCreditCardSpecifics {
+ // User-defined label (e.g. Amazon Visa).
+ optional string label = 1;
+
+ // The cardholder's name.
+ optional string name_on_card = 2;
+
+ // The type, e.g. Mastercard.
+ optional string type = 3;
+
+ // The credit card number.
+ optional string card_number = 4;
+
+ // The expiration.
+ optional string expiration_month = 5;
+ optional string expiration_year = 6;
+
+ // The CVV.
+ optional string verification_code = 7;
+
+ // The label of the Autofill profile that contains the billing address.
+ optional string billing_address = 8;
+
+ // The label of the Autofill profile that contains the shipping address.
+ optional string shipping_address = 9;
+}
+
message AutofillSpecifics {
+ // If any of these 3 fields are present, then all 3 should be, and it implies
+ // that this entity represents a classic autofill object. In this case,
+ // none of the autofill++ objects below should be present.
optional string name = 1;
optional string value = 2;
repeated int64 usage_timestamp = 3;
+
+ // An autofill++ profile object. If present, indicates this entity
+ // represents an AutoFillProfile exclusively, and no other fields (such as
+ // name/value or credit_card) should be present.
+ optional AutofillProfileSpecifics profile = 4;
+
+ // An AutofillCreditCardSpecifics, encryped using Nigori (see Chromium's
+ // base/nigori.h for details). If present, indicates this entity represents
+ // an autofill++ CreditCard, and no other fields should be present.
+ // If encryption for autofill++ is not enabled, this is unused. See
+ // |credit_card| in that case.
+ optional bytes encrypted_credit_card = 5;
+
+ // If encryption for autofill++ is not enabled, this field stores the
+ // AutofillCreditCardSpecifics [instead of |encrypted_credit_card|].
+ optional AutofillCreditCardSpecifics credit_card = 6;
}
extend EntitySpecifics {