| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // if this form is not relevant for Autofill. | 184 // if this form is not relevant for Autofill. |
| 185 bool OnWillSubmitForm(const FormData& form, const base::TimeTicks& timestamp); | 185 bool OnWillSubmitForm(const FormData& form, const base::TimeTicks& timestamp); |
| 186 | 186 |
| 187 // Processes the submitted |form|, saving any new Autofill data to the user's | 187 // Processes the submitted |form|, saving any new Autofill data to the user's |
| 188 // personal profile. Returns false if this form is not relevant for Autofill. | 188 // personal profile. Returns false if this form is not relevant for Autofill. |
| 189 bool OnFormSubmitted(const FormData& form); | 189 bool OnFormSubmitted(const FormData& form); |
| 190 | 190 |
| 191 // Will send an upload based on the |form_structure| data and the local | 191 // Will send an upload based on the |form_structure| data and the local |
| 192 // Autofill profile data. |observed_submission| is specified if the upload | 192 // Autofill profile data. |observed_submission| is specified if the upload |
| 193 // follows an observed submission event. | 193 // follows an observed submission event. |
| 194 void StartUploadProcess(std::unique_ptr<FormStructure> form_structure, | 194 virtual void StartUploadProcess(std::unique_ptr<FormStructure> form_structure, |
| 195 const base::TimeTicks& timestamp, | 195 const base::TimeTicks& timestamp, |
| 196 bool observed_submission); | 196 bool observed_submission); |
| 197 | 197 |
| 198 // Update the pending form with |form|, possibly processing the current | 198 // Update the pending form with |form|, possibly processing the current |
| 199 // pending form for upload. | 199 // pending form for upload. |
| 200 void UpdatePendingForm(const FormData& form); | 200 void UpdatePendingForm(const FormData& form); |
| 201 | 201 |
| 202 // Upload the current pending form. | 202 // Upload the current pending form. |
| 203 void ProcessPendingFormForUpload(); | 203 void ProcessPendingFormForUpload(); |
| 204 | 204 |
| 205 void OnTextFieldDidChange(const FormData& form, | 205 void OnTextFieldDidChange(const FormData& form, |
| 206 const FormFieldData& field, | 206 const FormFieldData& field, |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 623 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 624 OnLoadedServerPredictions_ResetManager); | 624 OnLoadedServerPredictions_ResetManager); |
| 625 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); | 625 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); |
| 626 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 626 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
| 627 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 627 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 628 }; | 628 }; |
| 629 | 629 |
| 630 } // namespace autofill | 630 } // namespace autofill |
| 631 | 631 |
| 632 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 632 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |