diff options
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r-- | chrome/browser/autofill/address.cc | 4 | ||||
-rw-r--r-- | chrome/browser/autofill/address.h | 4 | ||||
-rw-r--r-- | chrome/browser/autofill/autofill_field.cc | 2 | ||||
-rw-r--r-- | chrome/browser/autofill/autofill_field.h | 1 | ||||
-rw-r--r-- | chrome/browser/autofill/credit_card.cc | 14 | ||||
-rw-r--r-- | chrome/browser/autofill/credit_card.h | 3 | ||||
-rw-r--r-- | chrome/browser/autofill/form_structure.cc | 2 | ||||
-rw-r--r-- | chrome/browser/autofill/form_structure.h | 1 |
8 files changed, 22 insertions, 9 deletions
diff --git a/chrome/browser/autofill/address.cc b/chrome/browser/autofill/address.cc index cd5358e..8e75eec 100644 --- a/chrome/browser/autofill/address.cc +++ b/chrome/browser/autofill/address.cc @@ -27,6 +27,10 @@ const int kAutoFillAddressLength = arraysize(kAutoFillAddressTypes); } // namespace +Address::Address() {} + +Address::~Address() {} + void Address::GetPossibleFieldTypes(const string16& text, FieldTypeSet* possible_types) const { DCHECK(possible_types); diff --git a/chrome/browser/autofill/address.h b/chrome/browser/autofill/address.h index 1f826ee..a2b4dd3 100644 --- a/chrome/browser/autofill/address.h +++ b/chrome/browser/autofill/address.h @@ -14,8 +14,8 @@ // A form group that stores address information. class Address : public FormGroup { public: - Address() {} - virtual ~Address() {} + Address(); + virtual ~Address(); // FormGroup implementation: virtual FormGroup* Clone() const = 0; diff --git a/chrome/browser/autofill/autofill_field.cc b/chrome/browser/autofill/autofill_field.cc index 9503f7c..cd41b65 100644 --- a/chrome/browser/autofill/autofill_field.cc +++ b/chrome/browser/autofill/autofill_field.cc @@ -38,6 +38,8 @@ AutoFillField::AutoFillField(const webkit_glue::FormField& field, heuristic_type_(UNKNOWN_TYPE) { } +AutoFillField::~AutoFillField() {} + void AutoFillField::set_heuristic_type(const AutoFillFieldType& type) { DCHECK(type >= 0 && type < MAX_VALID_FIELD_TYPE); if (type >= 0 && type < MAX_VALID_FIELD_TYPE) diff --git a/chrome/browser/autofill/autofill_field.h b/chrome/browser/autofill/autofill_field.h index e2cccfe..3e749f8 100644 --- a/chrome/browser/autofill/autofill_field.h +++ b/chrome/browser/autofill/autofill_field.h @@ -17,6 +17,7 @@ class AutoFillField : public webkit_glue::FormField { AutoFillField(); AutoFillField(const webkit_glue::FormField& field, const string16& unique_name); + virtual ~AutoFillField(); const string16& unique_name() const { return unique_name_; } diff --git a/chrome/browser/autofill/credit_card.cc b/chrome/browser/autofill/credit_card.cc index 86cb365..98ba665 100644 --- a/chrome/browser/autofill/credit_card.cc +++ b/chrome/browser/autofill/credit_card.cc @@ -125,6 +125,13 @@ std::string GetCreditCardType(const string16& number) { } // namespace +CreditCard::CreditCard() + : expiration_month_(0), + expiration_year_(0), + billing_address_id_(0), + unique_id_(0) { +} + CreditCard::CreditCard(const string16& label, int unique_id) : expiration_month_(0), expiration_year_(0), @@ -137,12 +144,7 @@ CreditCard::CreditCard(const CreditCard& card) : FormGroup() { operator=(card); } -CreditCard::CreditCard() - : expiration_month_(0), - expiration_year_(0), - billing_address_id_(0), - unique_id_(0) { -} +CreditCard::~CreditCard() {} FormGroup* CreditCard::Clone() const { return new CreditCard(*this); diff --git a/chrome/browser/autofill/credit_card.h b/chrome/browser/autofill/credit_card.h index e078ab1..874385f 100644 --- a/chrome/browser/autofill/credit_card.h +++ b/chrome/browser/autofill/credit_card.h @@ -14,10 +14,11 @@ // A form group that stores credit card information. class CreditCard : public FormGroup { public: + CreditCard(); CreditCard(const string16& label, int unique_id); // For use in STL containers. CreditCard(const CreditCard& card); - CreditCard(); + ~CreditCard(); // FormGroup implementation: FormGroup* Clone() const; diff --git a/chrome/browser/autofill/form_structure.cc b/chrome/browser/autofill/form_structure.cc index 6e018a1..2e89f28 100644 --- a/chrome/browser/autofill/form_structure.cc +++ b/chrome/browser/autofill/form_structure.cc @@ -101,6 +101,8 @@ FormStructure::FormStructure(const FormData& form) } } +FormStructure::~FormStructure() {} + bool FormStructure::EncodeUploadRequest(bool auto_fill_used, std::string* encoded_xml) const { bool auto_fillable = IsAutoFillable(); diff --git a/chrome/browser/autofill/form_structure.h b/chrome/browser/autofill/form_structure.h index bb583dc..7000056 100644 --- a/chrome/browser/autofill/form_structure.h +++ b/chrome/browser/autofill/form_structure.h @@ -36,6 +36,7 @@ enum UploadRequired { class FormStructure { public: explicit FormStructure(const webkit_glue::FormData& form); + ~FormStructure(); // Encodes the XML upload request from this FormStructure. bool EncodeUploadRequest(bool auto_fill_used, |