| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 // Returns the value of the AutofillEnabled pref. | 186 // Returns the value of the AutofillEnabled pref. |
| 187 virtual bool IsAutofillEnabled() const; | 187 virtual bool IsAutofillEnabled() const; |
| 188 | 188 |
| 189 // Returns true if all the conditions for enabling the upload of credit card | 189 // Returns true if all the conditions for enabling the upload of credit card |
| 190 // are satisfied. | 190 // are satisfied. |
| 191 virtual bool IsCreditCardUploadEnabled(); | 191 virtual bool IsCreditCardUploadEnabled(); |
| 192 | 192 |
| 193 // Shared code to determine if |form| should be uploaded to the Autofill | 193 // Shared code to determine if |form| should be uploaded to the Autofill |
| 194 // server. It verifies that uploading is allowed and |form| meets conditions | 194 // server. It verifies that uploading is allowed and |form| meets conditions |
| 195 // to be uploadable. | 195 // to be uploadable. Exposed for testing. |
| 196 bool ShouldUploadForm(const FormStructure& form); | 196 bool ShouldUploadForm(const FormStructure& form); |
| 197 | 197 |
| 198 protected: | 198 protected: |
| 199 // Test code should prefer to use this constructor. | 199 // Test code should prefer to use this constructor. |
| 200 AutofillManager(AutofillDriver* driver, | 200 AutofillManager(AutofillDriver* driver, |
| 201 AutofillClient* client, | 201 AutofillClient* client, |
| 202 PersonalDataManager* personal_data); | 202 PersonalDataManager* personal_data); |
| 203 | 203 |
| 204 // Uploads the form data to the Autofill server. | 204 // Uploads the form data to the Autofill server. |
| 205 virtual void UploadFormData(const FormStructure& submitted_form); | 205 virtual void UploadFormData(const FormStructure& submitted_form); |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 538 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 539 DontSaveCvcInAutocompleteHistory); | 539 DontSaveCvcInAutocompleteHistory); |
| 540 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); | 540 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); |
| 541 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 541 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
| 542 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 542 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 543 }; | 543 }; |
| 544 | 544 |
| 545 } // namespace autofill | 545 } // namespace autofill |
| 546 | 546 |
| 547 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 547 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |