| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 const std::vector<base::string16>& labels); | 179 const std::vector<base::string16>& labels); |
| 180 | 180 |
| 181 // Resets cache. | 181 // Resets cache. |
| 182 virtual void Reset(); | 182 virtual void Reset(); |
| 183 | 183 |
| 184 // Returns the value of the AutofillEnabled pref. | 184 // Returns the value of the AutofillEnabled pref. |
| 185 virtual bool IsAutofillEnabled() const; | 185 virtual bool IsAutofillEnabled() const; |
| 186 | 186 |
| 187 // Shared code to determine if |form| should be uploaded to the Autofill | 187 // Shared code to determine if |form| should be uploaded to the Autofill |
| 188 // server. It verifies that uploading is allowed and |form| meets conditions | 188 // server. It verifies that uploading is allowed and |form| meets conditions |
| 189 // to be uploadable. | 189 // to be uploadable. Exposed for testing. |
| 190 bool ShouldUploadForm(const FormStructure& form); | 190 bool ShouldUploadForm(const FormStructure& form); |
| 191 | 191 |
| 192 protected: | 192 protected: |
| 193 // Test code should prefer to use this constructor. | 193 // Test code should prefer to use this constructor. |
| 194 AutofillManager(AutofillDriver* driver, | 194 AutofillManager(AutofillDriver* driver, |
| 195 AutofillClient* client, | 195 AutofillClient* client, |
| 196 PersonalDataManager* personal_data); | 196 PersonalDataManager* personal_data); |
| 197 | 197 |
| 198 // Uploads the form data to the Autofill server. | 198 // Uploads the form data to the Autofill server. |
| 199 virtual void UploadFormData(const FormStructure& submitted_form); | 199 virtual void UploadFormData(const FormStructure& submitted_form); |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 495 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 496 DontSaveCvcInAutocompleteHistory); | 496 DontSaveCvcInAutocompleteHistory); |
| 497 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard); | 497 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard); |
| 498 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 498 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
| 499 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 499 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 500 }; | 500 }; |
| 501 | 501 |
| 502 } // namespace autofill | 502 } // namespace autofill |
| 503 | 503 |
| 504 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 504 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |