| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef COMPONENTS_AUTOFILL_BROWSER_ADDRESS_FIELD_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_ADDRESS_FIELD_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_ADDRESS_FIELD_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_ADDRESS_FIELD_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 AddressField* address_field); | 55 AddressField* address_field); |
| 56 static bool ParseZipCode(AutofillScanner* scanner, | 56 static bool ParseZipCode(AutofillScanner* scanner, |
| 57 AddressField* address_field); | 57 AddressField* address_field); |
| 58 static bool ParseCity(AutofillScanner* scanner, | 58 static bool ParseCity(AutofillScanner* scanner, |
| 59 AddressField* address_field); | 59 AddressField* address_field); |
| 60 static bool ParseState(AutofillScanner* scanner, | 60 static bool ParseState(AutofillScanner* scanner, |
| 61 AddressField* address_field); | 61 AddressField* address_field); |
| 62 | 62 |
| 63 // Looks for an address type in the given text, which the caller must | 63 // Looks for an address type in the given text, which the caller must |
| 64 // convert to lowercase. | 64 // convert to lowercase. |
| 65 static AddressType AddressTypeFromText(const string16& text); | 65 static AddressType AddressTypeFromText(const base::string16& text); |
| 66 | 66 |
| 67 // Tries to determine the billing/shipping type of this address. | 67 // Tries to determine the billing/shipping type of this address. |
| 68 AddressType FindType() const; | 68 AddressType FindType() const; |
| 69 | 69 |
| 70 const AutofillField* company_; // optional | 70 const AutofillField* company_; // optional |
| 71 const AutofillField* address1_; | 71 const AutofillField* address1_; |
| 72 const AutofillField* address2_; // optional | 72 const AutofillField* address2_; // optional |
| 73 const AutofillField* city_; | 73 const AutofillField* city_; |
| 74 const AutofillField* state_; // optional | 74 const AutofillField* state_; // optional |
| 75 const AutofillField* zip_; | 75 const AutofillField* zip_; |
| 76 const AutofillField* zip4_; // optional ZIP+4; we don't fill this yet | 76 const AutofillField* zip4_; // optional ZIP+4; we don't fill this yet |
| 77 const AutofillField* country_; // optional | 77 const AutofillField* country_; // optional |
| 78 | 78 |
| 79 AddressType type_; | 79 AddressType type_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(AddressField); | 81 DISALLOW_COPY_AND_ASSIGN(AddressField); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 #endif // COMPONENTS_AUTOFILL_BROWSER_ADDRESS_FIELD_H_ | 84 #endif // COMPONENTS_AUTOFILL_BROWSER_ADDRESS_FIELD_H_ |
| OLD | NEW |