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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 } | 211 } |
212 | 212 |
213 // Causes the dialog for request autocomplete feature to be shown. | 213 // Causes the dialog for request autocomplete feature to be shown. |
214 virtual void ShowRequestAutocompleteDialog( | 214 virtual void ShowRequestAutocompleteDialog( |
215 const FormData& form, | 215 const FormData& form, |
216 const GURL& source_url, | 216 const GURL& source_url, |
217 const base::Callback<void(const FormStructure*)>& callback); | 217 const base::Callback<void(const FormStructure*)>& callback); |
218 | 218 |
219 // Tell the renderer the current interactive autocomplete finished. | 219 // Tell the renderer the current interactive autocomplete finished. |
220 virtual void ReturnAutocompleteResult( | 220 virtual void ReturnAutocompleteResult( |
221 WebKit::WebFormElement::AutocompleteResult result, | 221 blink::WebFormElement::AutocompleteResult result, |
222 const FormData& form_data); | 222 const FormData& form_data); |
223 | 223 |
224 private: | 224 private: |
225 // AutofillDownloadManager::Observer: | 225 // AutofillDownloadManager::Observer: |
226 virtual void OnLoadedServerPredictions( | 226 virtual void OnLoadedServerPredictions( |
227 const std::string& response_xml) OVERRIDE; | 227 const std::string& response_xml) OVERRIDE; |
228 | 228 |
229 // Passes return data for an OnRequestAutocomplete call back to the page. | 229 // Passes return data for an OnRequestAutocomplete call back to the page. |
230 void ReturnAutocompleteData(const FormStructure* result); | 230 void ReturnAutocompleteData(const FormStructure* result); |
231 | 231 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 UserHappinessFormLoadAndSubmission); | 382 UserHappinessFormLoadAndSubmission); |
383 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 383 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
384 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 384 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
385 FormSubmittedAutocompleteEnabled); | 385 FormSubmittedAutocompleteEnabled); |
386 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 386 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
387 }; | 387 }; |
388 | 388 |
389 } // namespace autofill | 389 } // namespace autofill |
390 | 390 |
391 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 391 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |