| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 // Returns true if all the conditions for enabling the upload of credit card | 211 // Returns true if all the conditions for enabling the upload of credit card |
| 212 // are satisfied. | 212 // are satisfied. |
| 213 virtual bool IsCreditCardUploadEnabled(); | 213 virtual bool IsCreditCardUploadEnabled(); |
| 214 | 214 |
| 215 // Shared code to determine if |form| should be uploaded to the Autofill | 215 // Shared code to determine if |form| should be uploaded to the Autofill |
| 216 // server. It verifies that uploading is allowed and |form| meets conditions | 216 // server. It verifies that uploading is allowed and |form| meets conditions |
| 217 // to be uploadable. Exposed for testing. | 217 // to be uploadable. Exposed for testing. |
| 218 bool ShouldUploadForm(const FormStructure& form); | 218 bool ShouldUploadForm(const FormStructure& form); |
| 219 | 219 |
| 220 void OpenUrl(const GURL& url); |
| 221 |
| 220 protected: | 222 protected: |
| 221 // Test code should prefer to use this constructor. | 223 // Test code should prefer to use this constructor. |
| 222 AutofillManager(AutofillDriver* driver, | 224 AutofillManager(AutofillDriver* driver, |
| 223 AutofillClient* client, | 225 AutofillClient* client, |
| 224 PersonalDataManager* personal_data); | 226 PersonalDataManager* personal_data); |
| 225 | 227 |
| 226 // Uploads the form data to the Autofill server. |observed_submission| | 228 // Uploads the form data to the Autofill server. |observed_submission| |
| 227 // indicates that upload is the result of a submission event. | 229 // indicates that upload is the result of a submission event. |
| 228 virtual void UploadFormData(const FormStructure& submitted_form, | 230 virtual void UploadFormData(const FormStructure& submitted_form, |
| 229 bool observed_submission); | 231 bool observed_submission); |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 588 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 587 OnLoadedServerPredictions_ResetManager); | 589 OnLoadedServerPredictions_ResetManager); |
| 588 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); | 590 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); |
| 589 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 591 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
| 590 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 592 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 591 }; | 593 }; |
| 592 | 594 |
| 593 } // namespace autofill | 595 } // namespace autofill |
| 594 | 596 |
| 595 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 597 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |