| 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 #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 <map> | 10 #include <map> |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // Uses existing personal data to determine possible field types for the | 195 // Uses existing personal data to determine possible field types for the |
| 196 // |submitted_form|. | 196 // |submitted_form|. |
| 197 void DeterminePossibleFieldTypesForUpload(FormStructure* submitted_form); | 197 void DeterminePossibleFieldTypesForUpload(FormStructure* submitted_form); |
| 198 | 198 |
| 199 // The personal data manager, used to save and load personal data to/from the | 199 // The personal data manager, used to save and load personal data to/from the |
| 200 // web database. This is overridden by the AutofillManagerTest. | 200 // web database. This is overridden by the AutofillManagerTest. |
| 201 // Weak reference. | 201 // Weak reference. |
| 202 // May be NULL. NULL indicates OTR. | 202 // May be NULL. NULL indicates OTR. |
| 203 PersonalDataManager* personal_data_; | 203 PersonalDataManager* personal_data_; |
| 204 | 204 |
| 205 std::list<std::string> autofilled_forms_signatures_; | 205 std::list<std::string> autofilled_form_signatures_; |
| 206 // Handles queries and uploads to Autofill servers. | 206 // Handles queries and uploads to Autofill servers. |
| 207 AutofillDownloadManager download_manager_; | 207 AutofillDownloadManager download_manager_; |
| 208 | 208 |
| 209 // Should be set to true in AutofillManagerTest and other tests, false in | 209 // Should be set to true in AutofillManagerTest and other tests, false in |
| 210 // AutofillDownloadManagerTest and in non-test environment. Is false by | 210 // AutofillDownloadManagerTest and in non-test environment. Is false by |
| 211 // default for the public constructor, and true by default for the test-only | 211 // default for the public constructor, and true by default for the test-only |
| 212 // constructors. | 212 // constructors. |
| 213 bool disable_download_manager_requests_; | 213 bool disable_download_manager_requests_; |
| 214 | 214 |
| 215 // For logging UMA metrics. Overridden by metrics tests. | 215 // For logging UMA metrics. Overridden by metrics tests. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 NoQualityMetricsForNonAutofillableForms); | 252 NoQualityMetricsForNonAutofillableForms); |
| 253 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, QualityMetrics); | 253 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, QualityMetrics); |
| 254 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, QualityMetricsForFailure); | 254 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, QualityMetricsForFailure); |
| 255 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, QualityMetricsWithExperimentId); | 255 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, QualityMetricsWithExperimentId); |
| 256 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, SaneMetricsWithCacheMismatch); | 256 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, SaneMetricsWithCacheMismatch); |
| 257 | 257 |
| 258 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 258 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 261 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| OLD | NEW |