OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Registers our Enable/Disable Autofill pref. | 84 // Registers our Enable/Disable Autofill pref. |
85 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 85 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); |
86 | 86 |
87 AutofillManager(AutofillDriver* driver, | 87 AutofillManager(AutofillDriver* driver, |
88 autofill::AutofillManagerDelegate* delegate, | 88 autofill::AutofillManagerDelegate* delegate, |
89 const std::string& app_locale, | 89 const std::string& app_locale, |
90 AutofillDownloadManagerState enable_download_manager); | 90 AutofillDownloadManagerState enable_download_manager); |
91 virtual ~AutofillManager(); | 91 virtual ~AutofillManager(); |
92 | 92 |
93 // Set an external delegate. | 93 // Set an external delegate. |
94 void SetExternalDelegate(AutofillExternalDelegate* delegate); | 94 virtual void SetExternalDelegate(AutofillExternalDelegate* delegate); |
95 | 95 |
96 // Whether browser process will create and own the Autofill popup UI. | 96 // Whether browser process will create and own the Autofill popup UI. |
97 bool IsNativeUiEnabled(); | 97 bool IsNativeUiEnabled(); |
98 | 98 |
99 // Called from our external delegate so they cannot be private. | 99 // Called from our external delegate so they cannot be private. |
100 virtual void OnFillAutofillFormData(int query_id, | 100 virtual void OnFillAutofillFormData(int query_id, |
101 const FormData& form, | 101 const FormData& form, |
102 const FormFieldData& field, | 102 const FormFieldData& field, |
103 int unique_id); | 103 int unique_id); |
104 void OnDidShowAutofillSuggestions(bool is_new_popup); | 104 void OnDidShowAutofillSuggestions(bool is_new_popup); |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 421 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
422 UserHappinessFormLoadAndSubmission); | 422 UserHappinessFormLoadAndSubmission); |
423 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 423 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
424 | 424 |
425 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 425 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
426 }; | 426 }; |
427 | 427 |
428 } // namespace autofill | 428 } // namespace autofill |
429 | 429 |
430 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 430 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |