| OLD | NEW |
| 1 // Copyright (c) 2010 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 CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/autofill/phone_number.h" | 9 #include "chrome/browser/autofill/phone_number.h" |
| 10 | 10 |
| 11 class FormGroup; | 11 class FormGroup; |
| 12 | 12 |
| 13 class HomePhoneNumber : public PhoneNumber { | 13 class HomePhoneNumber : public PhoneNumber { |
| 14 public: | 14 public: |
| 15 HomePhoneNumber() {} | 15 HomePhoneNumber(); |
| 16 virtual FormGroup* Clone() const; | 16 explicit HomePhoneNumber(const HomePhoneNumber& phone); |
| 17 virtual ~HomePhoneNumber(); |
| 18 |
| 19 HomePhoneNumber& operator=(const HomePhoneNumber& phone); |
| 17 | 20 |
| 18 protected: | 21 protected: |
| 19 virtual AutofillFieldType GetNumberType() const; | 22 virtual AutofillFieldType GetNumberType() const; |
| 20 virtual AutofillFieldType GetCityCodeType() const; | 23 virtual AutofillFieldType GetCityCodeType() const; |
| 21 virtual AutofillFieldType GetCountryCodeType() const; | 24 virtual AutofillFieldType GetCountryCodeType() const; |
| 22 virtual AutofillFieldType GetCityAndNumberType() const; | 25 virtual AutofillFieldType GetCityAndNumberType() const; |
| 23 virtual AutofillFieldType GetWholeNumberType() const; | 26 virtual AutofillFieldType GetWholeNumberType() const; |
| 24 | |
| 25 private: | |
| 26 explicit HomePhoneNumber(const HomePhoneNumber& phone) : PhoneNumber(phone) {} | |
| 27 void operator=(const HomePhoneNumber& phone); | |
| 28 }; | 27 }; |
| 29 | 28 |
| 30 #endif // CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ | 29 #endif // CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ |
| OLD | NEW |