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_PHONE_NUMBER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PHONE_NUMBER_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_PHONE_NUMBER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PHONE_NUMBER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "components/autofill/browser/autofill_type.h" | 13 #include "components/autofill/core/browser/autofill_type.h" |
14 #include "components/autofill/browser/form_group.h" | 14 #include "components/autofill/core/browser/form_group.h" |
15 #include "components/autofill/browser/phone_number_i18n.h" | 15 #include "components/autofill/core/browser/phone_number_i18n.h" |
16 | 16 |
17 namespace autofill { | 17 namespace autofill { |
18 | 18 |
19 class AutofillProfile; | 19 class AutofillProfile; |
20 | 20 |
21 // A form group that stores phone number information. | 21 // A form group that stores phone number information. |
22 class PhoneNumber : public FormGroup { | 22 class PhoneNumber : public FormGroup { |
23 public: | 23 public: |
24 explicit PhoneNumber(AutofillProfile* profile); | 24 explicit PhoneNumber(AutofillProfile* profile); |
25 PhoneNumber(const PhoneNumber& number); | 25 PhoneNumber(const PhoneNumber& number); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 base::string16 number_; | 88 base::string16 number_; |
89 // Profile which stores the region used as hint when normalizing the number. | 89 // Profile which stores the region used as hint when normalizing the number. |
90 const AutofillProfile* profile_; // WEAK | 90 const AutofillProfile* profile_; // WEAK |
91 | 91 |
92 // Cached number. | 92 // Cached number. |
93 mutable i18n::PhoneObject cached_parsed_phone_; | 93 mutable i18n::PhoneObject cached_parsed_phone_; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace autofill | 96 } // namespace autofill |
97 | 97 |
98 #endif // COMPONENTS_AUTOFILL_BROWSER_PHONE_NUMBER_H_ | 98 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PHONE_NUMBER_H_ |
OLD | NEW |