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 CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 const FormFieldData& form, | 220 const FormFieldData& form, |
221 const PasswordFormFillData& fill_data); | 221 const PasswordFormFillData& fill_data); |
222 void OnShowPasswordSuggestions(const FormFieldData& field, | 222 void OnShowPasswordSuggestions(const FormFieldData& field, |
223 const gfx::Rect& bounds, | 223 const gfx::Rect& bounds, |
224 const std::vector<string16>& suggestions); | 224 const std::vector<string16>& suggestions); |
225 void OnSetDataList(const std::vector<string16>& values, | 225 void OnSetDataList(const std::vector<string16>& values, |
226 const std::vector<string16>& labels, | 226 const std::vector<string16>& labels, |
227 const std::vector<string16>& icons, | 227 const std::vector<string16>& icons, |
228 const std::vector<int>& unique_ids); | 228 const std::vector<int>& unique_ids); |
229 | 229 |
| 230 // Requests an interactive autocomplete UI be shown. |
| 231 void OnRequestAutocomplete(const FormData& form); |
| 232 |
230 // Fills |host| with the RenderViewHost for this tab. | 233 // Fills |host| with the RenderViewHost for this tab. |
231 // Returns false if Autofill is disabled or if the host is unavailable. | 234 // Returns false if Autofill is disabled or if the host is unavailable. |
232 bool GetHost(const std::vector<AutofillProfile*>& profiles, | 235 bool GetHost(const std::vector<AutofillProfile*>& profiles, |
233 const std::vector<CreditCard*>& credit_cards, | 236 const std::vector<CreditCard*>& credit_cards, |
234 content::RenderViewHost** host) const WARN_UNUSED_RESULT; | 237 content::RenderViewHost** host) const WARN_UNUSED_RESULT; |
235 | 238 |
236 // Unpacks |unique_id| and fills |profile| or |credit_card| with the | 239 // Unpacks |unique_id| and fills |profile| or |credit_card| with the |
237 // appropriate data source. Returns false if the unpacked id cannot be found. | 240 // appropriate data source. Returns false if the unpacked id cannot be found. |
238 bool GetProfileOrCreditCard(int unique_id, | 241 bool GetProfileOrCreditCard(int unique_id, |
239 const std::vector<AutofillProfile*>& profiles, | 242 const std::vector<AutofillProfile*>& profiles, |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 410 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
408 TestTabContentsWithExternalDelegate); | 411 TestTabContentsWithExternalDelegate); |
409 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 412 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
410 UserHappinessFormLoadAndSubmission); | 413 UserHappinessFormLoadAndSubmission); |
411 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 414 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
412 | 415 |
413 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 416 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
414 }; | 417 }; |
415 | 418 |
416 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 419 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |