| 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 #include "chrome/browser/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 5043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5054 autofill_type_to_string[ADDRESS_HOME_LINE2] = "ADDRESS_HOME_LINE2"; | 5054 autofill_type_to_string[ADDRESS_HOME_LINE2] = "ADDRESS_HOME_LINE2"; |
| 5055 autofill_type_to_string[ADDRESS_HOME_CITY] = "ADDRESS_HOME_CITY"; | 5055 autofill_type_to_string[ADDRESS_HOME_CITY] = "ADDRESS_HOME_CITY"; |
| 5056 autofill_type_to_string[ADDRESS_HOME_STATE] = "ADDRESS_HOME_STATE"; | 5056 autofill_type_to_string[ADDRESS_HOME_STATE] = "ADDRESS_HOME_STATE"; |
| 5057 autofill_type_to_string[ADDRESS_HOME_ZIP] = "ADDRESS_HOME_ZIP"; | 5057 autofill_type_to_string[ADDRESS_HOME_ZIP] = "ADDRESS_HOME_ZIP"; |
| 5058 autofill_type_to_string[ADDRESS_HOME_COUNTRY] = "ADDRESS_HOME_COUNTRY"; | 5058 autofill_type_to_string[ADDRESS_HOME_COUNTRY] = "ADDRESS_HOME_COUNTRY"; |
| 5059 autofill_type_to_string[PHONE_HOME_COUNTRY_CODE] = | 5059 autofill_type_to_string[PHONE_HOME_COUNTRY_CODE] = |
| 5060 "PHONE_HOME_COUNTRY_CODE"; | 5060 "PHONE_HOME_COUNTRY_CODE"; |
| 5061 autofill_type_to_string[PHONE_HOME_CITY_CODE] = "PHONE_HOME_CITY_CODE"; | 5061 autofill_type_to_string[PHONE_HOME_CITY_CODE] = "PHONE_HOME_CITY_CODE"; |
| 5062 autofill_type_to_string[PHONE_HOME_WHOLE_NUMBER] = | 5062 autofill_type_to_string[PHONE_HOME_WHOLE_NUMBER] = |
| 5063 "PHONE_HOME_WHOLE_NUMBER"; | 5063 "PHONE_HOME_WHOLE_NUMBER"; |
| 5064 autofill_type_to_string[PHONE_FAX_COUNTRY_CODE] = "PHONE_FAX_COUNTRY_CODE"; | |
| 5065 autofill_type_to_string[PHONE_FAX_CITY_CODE] = "PHONE_FAX_CITY_CODE"; | |
| 5066 autofill_type_to_string[PHONE_FAX_WHOLE_NUMBER] = "PHONE_FAX_WHOLE_NUMBER"; | |
| 5067 return autofill_type_to_string; | 5064 return autofill_type_to_string; |
| 5068 } | 5065 } |
| 5069 | 5066 |
| 5070 /* static */ | 5067 /* static */ |
| 5071 std::map<AutofillFieldType, std::string> | 5068 std::map<AutofillFieldType, std::string> |
| 5072 TestingAutomationProvider::GetCreditCardFieldToStringMap() { | 5069 TestingAutomationProvider::GetCreditCardFieldToStringMap() { |
| 5073 std::map<AutofillFieldType, std::string> credit_card_type_to_string; | 5070 std::map<AutofillFieldType, std::string> credit_card_type_to_string; |
| 5074 credit_card_type_to_string[CREDIT_CARD_NAME] = "CREDIT_CARD_NAME"; | 5071 credit_card_type_to_string[CREDIT_CARD_NAME] = "CREDIT_CARD_NAME"; |
| 5075 credit_card_type_to_string[CREDIT_CARD_NUMBER] = "CREDIT_CARD_NUMBER"; | 5072 credit_card_type_to_string[CREDIT_CARD_NUMBER] = "CREDIT_CARD_NUMBER"; |
| 5076 credit_card_type_to_string[CREDIT_CARD_EXP_MONTH] = "CREDIT_CARD_EXP_MONTH"; | 5073 credit_card_type_to_string[CREDIT_CARD_EXP_MONTH] = "CREDIT_CARD_EXP_MONTH"; |
| (...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6341 IPC::ParamTraits<std::vector<GURL> >::Write(reply_message_, redirects_gurl); | 6338 IPC::ParamTraits<std::vector<GURL> >::Write(reply_message_, redirects_gurl); |
| 6342 | 6339 |
| 6343 Send(reply_message_); | 6340 Send(reply_message_); |
| 6344 redirect_query_ = 0; | 6341 redirect_query_ = 0; |
| 6345 reply_message_ = NULL; | 6342 reply_message_ = NULL; |
| 6346 } | 6343 } |
| 6347 | 6344 |
| 6348 void TestingAutomationProvider::OnRemoveProvider() { | 6345 void TestingAutomationProvider::OnRemoveProvider() { |
| 6349 AutomationProviderList::GetInstance()->RemoveProvider(this); | 6346 AutomationProviderList::GetInstance()->RemoveProvider(this); |
| 6350 } | 6347 } |
| OLD | NEW |