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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 // Weak reference. | 178 // Weak reference. |
179 // May not be NULL. | 179 // May not be NULL. |
180 TabContents* tab_contents_; | 180 TabContents* tab_contents_; |
181 | 181 |
182 // The personal data manager, used to save and load personal data to/from the | 182 // The personal data manager, used to save and load personal data to/from the |
183 // web database. This is overridden by the AutoFillManagerTest. | 183 // web database. This is overridden by the AutoFillManagerTest. |
184 // Weak reference. | 184 // Weak reference. |
185 // May be NULL. NULL indicates OTR. | 185 // May be NULL. NULL indicates OTR. |
186 PersonalDataManager* personal_data_; | 186 PersonalDataManager* personal_data_; |
187 | 187 |
188 std::list<std::string> autofilled_forms_signatures_; | 188 struct AutofilledFormInfo { |
dhollowa
2011/01/11 23:29:29
I think |FilledFormInfo| would be preferable. We'
GeorgeY
2011/01/13 23:22:28
removed in new version.
| |
189 // Signature of the form that was autofilled. | |
190 std::string form_signature; | |
191 // Guid of the address profile that was used for autofill. | |
dhollowa
2011/01/11 23:29:29
s/Guid/GUID
s/autofill/AutoFill/
GeorgeY
2011/01/13 23:22:28
removed in new version.
| |
192 std::string profile_guid; | |
193 // Guid of the credit card profile that was used for autofill. | |
dhollowa
2011/01/11 23:29:29
s/Guid/GUID
s/autofill/AutoFill/
GeorgeY
2011/01/13 23:22:28
removed in new version.
| |
194 std::string cc_guid; | |
195 }; | |
196 std::list<AutofilledFormInfo> autofilled_forms_signatures_; | |
189 // Handles queries and uploads to AutoFill servers. | 197 // Handles queries and uploads to AutoFill servers. |
190 AutoFillDownloadManager download_manager_; | 198 AutoFillDownloadManager download_manager_; |
191 | 199 |
192 // Should be set to true in AutoFillManagerTest and other tests, false in | 200 // Should be set to true in AutoFillManagerTest and other tests, false in |
193 // AutoFillDownloadManagerTest and in non-test environment. Is false by | 201 // AutoFillDownloadManagerTest and in non-test environment. Is false by |
194 // default for the public constructor, and true by default for the test-only | 202 // default for the public constructor, and true by default for the test-only |
195 // constructors. | 203 // constructors. |
196 bool disable_download_manager_requests_; | 204 bool disable_download_manager_requests_; |
197 | 205 |
198 // For logging UMA metrics. Overridden by metrics tests. | 206 // For logging UMA metrics. Overridden by metrics tests. |
(...skipping 23 matching lines...) Expand all Loading... | |
222 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); | 230 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); |
223 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); | 231 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); |
224 FRIEND_TEST_ALL_PREFIXES(AutoFillMetricsTest, QualityMetrics); | 232 FRIEND_TEST_ALL_PREFIXES(AutoFillMetricsTest, QualityMetrics); |
225 FRIEND_TEST_ALL_PREFIXES(AutoFillMetricsTest, | 233 FRIEND_TEST_ALL_PREFIXES(AutoFillMetricsTest, |
226 NoQualityMetricsForNonAutoFillableForms); | 234 NoQualityMetricsForNonAutoFillableForms); |
227 | 235 |
228 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); | 236 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); |
229 }; | 237 }; |
230 | 238 |
231 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 239 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |