Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_BILLING_ADDRESS_H_ | |
| 6 #define CHROME_BROWSER_AUTOFILL_BILLING_ADDRESS_H_ | |
|
Elliot Glaysher
2011/02/15 21:16:41
Checked with David. This just was never GCed.
| |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/browser/autofill/address.h" | |
| 10 #include "chrome/browser/autofill/field_types.h" | |
| 11 | |
| 12 class FormGroup; | |
| 13 | |
| 14 // A specialization of Address that identifies itself as a billing address. | |
| 15 class BillingAddress : public Address { | |
| 16 public: | |
| 17 BillingAddress() {} | |
| 18 FormGroup* Clone() const { return new BillingAddress(*this); } | |
| 19 | |
| 20 protected: | |
| 21 virtual AutoFillFieldType GetLine1Type() const { | |
| 22 return ADDRESS_BILLING_LINE1; | |
| 23 } | |
| 24 | |
| 25 virtual AutoFillFieldType GetLine2Type() const { | |
| 26 return ADDRESS_BILLING_LINE2; | |
| 27 } | |
| 28 | |
| 29 virtual AutoFillFieldType GetAptNumType() const { | |
| 30 return ADDRESS_BILLING_APT_NUM; | |
| 31 } | |
| 32 | |
| 33 virtual AutoFillFieldType GetCityType() const { | |
| 34 return ADDRESS_BILLING_CITY; | |
| 35 } | |
| 36 | |
| 37 virtual AutoFillFieldType GetStateType() const { | |
| 38 return ADDRESS_BILLING_STATE; | |
| 39 } | |
| 40 | |
| 41 virtual AutoFillFieldType GetZipCodeType() const { | |
| 42 return ADDRESS_BILLING_ZIP; | |
| 43 } | |
| 44 | |
| 45 virtual AutoFillFieldType GetCountryType() const { | |
| 46 return ADDRESS_BILLING_COUNTRY; | |
| 47 } | |
| 48 | |
| 49 private: | |
| 50 explicit BillingAddress(const BillingAddress& address) : Address(address) {} | |
| 51 void operator=(const BillingAddress& address); // Not implemented. | |
| 52 }; | |
| 53 | |
| 54 #endif // CHROME_BROWSER_AUTOFILL_BILLING_ADDRESS_H_ | |
| OLD | NEW |