| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Returns the present web_contents state. | 105 // Returns the present web_contents state. |
| 106 content::WebContents* GetWebContents() const; | 106 content::WebContents* GetWebContents() const; |
| 107 | 107 |
| 108 // Returns the present form structures seen by Autofill manager. | 108 // Returns the present form structures seen by Autofill manager. |
| 109 const std::vector<FormStructure*>& GetFormStructures(); | 109 const std::vector<FormStructure*>& GetFormStructures(); |
| 110 | 110 |
| 111 // Causes the dialog for request autocomplete feature to be shown. | 111 // Causes the dialog for request autocomplete feature to be shown. |
| 112 virtual void ShowRequestAutocompleteDialog( | 112 virtual void ShowRequestAutocompleteDialog( |
| 113 const FormData& form, | 113 const FormData& form, |
| 114 const GURL& source_url, | 114 const GURL& source_url, |
| 115 autofill::DialogType dialog_type, | |
| 116 const base::Callback<void(const FormStructure*, | 115 const base::Callback<void(const FormStructure*, |
| 117 const std::string&)>& callback); | 116 const std::string&)>& callback); |
| 118 | 117 |
| 119 // Happens when the autocomplete dialog runs its callback when being closed. | 118 // Happens when the autocomplete dialog runs its callback when being closed. |
| 120 void RequestAutocompleteDialogClosed(); | 119 void RequestAutocompleteDialogClosed(); |
| 121 | 120 |
| 122 autofill::AutofillManagerDelegate* delegate() const { | 121 autofill::AutofillManagerDelegate* delegate() const { |
| 123 return manager_delegate_; | 122 return manager_delegate_; |
| 124 } | 123 } |
| 125 | 124 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 UserHappinessFormLoadAndSubmission); | 375 UserHappinessFormLoadAndSubmission); |
| 377 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 376 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 378 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 377 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 379 FormSubmittedAutocompleteEnabled); | 378 FormSubmittedAutocompleteEnabled); |
| 380 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 379 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 381 }; | 380 }; |
| 382 | 381 |
| 383 } // namespace autofill | 382 } // namespace autofill |
| 384 | 383 |
| 385 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 384 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |