home_phone_number.h revision 3345a6884c488ff3a535c2c9acdd33d74b37e311
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_HOME_PHONE_NUMBER_H_ 6#define CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ 7#pragma once 8 9#include "chrome/browser/autofill/phone_number.h" 10 11class FormGroup; 12 13class HomePhoneNumber : public PhoneNumber { 14 public: 15 HomePhoneNumber() {} 16 virtual FormGroup* Clone() const { return new HomePhoneNumber(*this); } 17 18 protected: 19 virtual AutoFillFieldType GetNumberType() const { 20 return PHONE_HOME_NUMBER; 21 } 22 23 virtual AutoFillFieldType GetCityCodeType() const { 24 return PHONE_HOME_CITY_CODE; 25 } 26 27 virtual AutoFillFieldType GetCountryCodeType() const { 28 return PHONE_HOME_COUNTRY_CODE; 29 } 30 31 virtual AutoFillFieldType GetCityAndNumberType() const { 32 return PHONE_HOME_CITY_AND_NUMBER; 33 } 34 35 virtual AutoFillFieldType GetWholeNumberType() const { 36 return PHONE_HOME_WHOLE_NUMBER; 37 } 38 39 private: 40 explicit HomePhoneNumber(const HomePhoneNumber& phone) : PhoneNumber(phone) {} 41 void operator=(const HomePhoneNumber& phone); 42}; 43 44#endif // CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ 45