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 <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Weak reference. | 170 // Weak reference. |
171 // May not be NULL. | 171 // May not be NULL. |
172 TabContents* tab_contents_; | 172 TabContents* tab_contents_; |
173 | 173 |
174 // The personal data manager, used to save and load personal data to/from the | 174 // The personal data manager, used to save and load personal data to/from the |
175 // web database. This is overridden by the AutoFillManagerTest. | 175 // web database. This is overridden by the AutoFillManagerTest. |
176 // Weak reference. | 176 // Weak reference. |
177 // May be NULL. NULL indicates OTR. | 177 // May be NULL. NULL indicates OTR. |
178 PersonalDataManager* personal_data_; | 178 PersonalDataManager* personal_data_; |
179 | 179 |
180 std::list<std::string> autofilled_forms_signatures_; | 180 struct AutofilledFormInfo { |
| 181 // Signature of the form that was autofilled. |
| 182 std::string form_signature; |
| 183 // Guid of the address profile that was used for autofill. |
| 184 std::string profile_guid; |
| 185 // Guid of the credit card profile that was used for autofill. |
| 186 std::string cc_guid; |
| 187 }; |
| 188 std::list<AutofilledFormInfo> autofilled_forms_signatures_; |
181 // Handles queries and uploads to AutoFill servers. | 189 // Handles queries and uploads to AutoFill servers. |
182 AutoFillDownloadManager download_manager_; | 190 AutoFillDownloadManager download_manager_; |
183 | 191 |
184 // Should be set to true in AutoFillManagerTest and other tests, false in | 192 // Should be set to true in AutoFillManagerTest and other tests, false in |
185 // AutoFillDownloadManagerTest and in non-test environment. Is false by | 193 // AutoFillDownloadManagerTest and in non-test environment. Is false by |
186 // default for the public constructor, and true by default for the test-only | 194 // default for the public constructor, and true by default for the test-only |
187 // constructors. | 195 // constructors. |
188 bool disable_download_manager_requests_; | 196 bool disable_download_manager_requests_; |
189 | 197 |
190 // For logging UMA metrics. Overridden by metrics tests. | 198 // For logging UMA metrics. Overridden by metrics tests. |
(...skipping 19 matching lines...) Expand all Loading... |
210 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm); | 218 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm); |
211 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAutoFilledForm); | 219 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAutoFilledForm); |
212 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber); | 220 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber); |
213 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); | 221 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); |
214 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); | 222 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); |
215 | 223 |
216 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); | 224 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); |
217 }; | 225 }; |
218 | 226 |
219 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 227 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |