OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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_AUTOFILL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 #include <string> | 10 #include <string> |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 scoped_ptr<FormStructure> upload_form_structure_; | 178 scoped_ptr<FormStructure> upload_form_structure_; |
179 | 179 |
180 // The InfoBar that asks for permission to store credit card information. | 180 // The InfoBar that asks for permission to store credit card information. |
181 // Deletes itself when closed. | 181 // Deletes itself when closed. |
182 AutoFillCCInfoBarDelegate* cc_infobar_; | 182 AutoFillCCInfoBarDelegate* cc_infobar_; |
183 | 183 |
184 // GUID to ID mapping. We keep two maps to convert back and forth. | 184 // GUID to ID mapping. We keep two maps to convert back and forth. |
185 std::map<std::string, int> guid_id_map_; | 185 std::map<std::string, int> guid_id_map_; |
186 std::map<int, std::string> id_guid_map_; | 186 std::map<int, std::string> id_guid_map_; |
187 | 187 |
| 188 friend class FormStructureBrowserTest; |
188 friend class TestAutoFillManager; | 189 friend class TestAutoFillManager; |
189 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillCreditCardForm); | 190 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillCreditCardForm); |
190 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressForm); | 191 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressForm); |
191 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm); | 192 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm); |
192 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber); | 193 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber); |
193 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); | 194 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); |
194 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); | 195 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); |
195 | 196 |
196 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); | 197 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); |
197 }; | 198 }; |
198 | 199 |
199 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 200 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |