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