| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 AutofillManager(AutofillDriver* driver, | 78 AutofillManager(AutofillDriver* driver, |
| 79 autofill::AutofillManagerDelegate* delegate, | 79 autofill::AutofillManagerDelegate* delegate, |
| 80 const std::string& app_locale, | 80 const std::string& app_locale, |
| 81 AutofillDownloadManagerState enable_download_manager); | 81 AutofillDownloadManagerState enable_download_manager); |
| 82 virtual ~AutofillManager(); | 82 virtual ~AutofillManager(); |
| 83 | 83 |
| 84 // Sets an external delegate. | 84 // Sets an external delegate. |
| 85 void SetExternalDelegate(AutofillExternalDelegate* delegate); | 85 void SetExternalDelegate(AutofillExternalDelegate* delegate); |
| 86 | 86 |
| 87 void ShowAutofillSettings(); |
| 88 |
| 87 // Called from our external delegate so they cannot be private. | 89 // Called from our external delegate so they cannot be private. |
| 88 virtual void OnFillAutofillFormData(int query_id, | 90 virtual void OnFillAutofillFormData(int query_id, |
| 89 const FormData& form, | 91 const FormData& form, |
| 90 const FormFieldData& field, | 92 const FormFieldData& field, |
| 91 int unique_id); | 93 int unique_id); |
| 92 void OnDidShowAutofillSuggestions(bool is_new_popup); | 94 void OnDidShowAutofillSuggestions(bool is_new_popup); |
| 93 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); | 95 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); |
| 94 void OnShowAutofillDialog(); | |
| 95 void OnDidPreviewAutofillFormData(); | 96 void OnDidPreviewAutofillFormData(); |
| 96 | 97 |
| 97 // Remove the credit card or Autofill profile that matches |unique_id| | 98 // Remove the credit card or Autofill profile that matches |unique_id| |
| 98 // from the database. | 99 // from the database. |
| 99 void RemoveAutofillProfileOrCreditCard(int unique_id); | 100 void RemoveAutofillProfileOrCreditCard(int unique_id); |
| 100 | 101 |
| 101 // Remove the specified Autocomplete entry. | 102 // Remove the specified Autocomplete entry. |
| 102 void RemoveAutocompleteEntry(const base::string16& name, | 103 void RemoveAutocompleteEntry(const base::string16& name, |
| 103 const base::string16& value); | 104 const base::string16& value); |
| 104 | 105 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 133 | 134 |
| 134 // The |bounding_box| is a window relative value. | 135 // The |bounding_box| is a window relative value. |
| 135 void OnQueryFormFieldAutofill(int query_id, | 136 void OnQueryFormFieldAutofill(int query_id, |
| 136 const FormData& form, | 137 const FormData& form, |
| 137 const FormFieldData& field, | 138 const FormFieldData& field, |
| 138 const gfx::RectF& bounding_box, | 139 const gfx::RectF& bounding_box, |
| 139 bool display_warning); | 140 bool display_warning); |
| 140 void OnDidEndTextFieldEditing(); | 141 void OnDidEndTextFieldEditing(); |
| 141 void OnHideAutofillUI(); | 142 void OnHideAutofillUI(); |
| 142 void OnAddPasswordFormMapping( | 143 void OnAddPasswordFormMapping( |
| 143 const FormFieldData& form, | 144 const FormFieldData& username_field, |
| 144 const PasswordFormFillData& fill_data); | 145 const PasswordFormFillData& fill_data); |
| 145 void OnShowPasswordSuggestions( | 146 void OnShowPasswordSuggestions( |
| 146 const FormFieldData& field, | 147 const FormFieldData& field, |
| 147 const gfx::RectF& bounds, | 148 const gfx::RectF& bounds, |
| 148 const std::vector<base::string16>& suggestions, | 149 const std::vector<base::string16>& suggestions, |
| 149 const std::vector<base::string16>& realms); | 150 const std::vector<base::string16>& realms); |
| 150 void OnSetDataList(const std::vector<base::string16>& values, | 151 void OnSetDataList(const std::vector<base::string16>& values, |
| 151 const std::vector<base::string16>& labels); | 152 const std::vector<base::string16>& labels); |
| 152 | 153 |
| 153 // Try and upload |form|. This differs from OnFormSubmitted() in a few ways. | 154 // Try and upload |form|. This differs from OnFormSubmitted() in a few ways. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 UserHappinessFormLoadAndSubmission); | 364 UserHappinessFormLoadAndSubmission); |
| 364 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 365 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 365 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 366 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 366 FormSubmittedAutocompleteEnabled); | 367 FormSubmittedAutocompleteEnabled); |
| 367 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 368 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 368 }; | 369 }; |
| 369 | 370 |
| 370 } // namespace autofill | 371 } // namespace autofill |
| 371 | 372 |
| 372 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 373 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |