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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 const gfx::Rect& bounding_box, | 205 const gfx::Rect& bounding_box, |
206 bool display_warning); | 206 bool display_warning); |
207 void OnDidEndTextFieldEditing(); | 207 void OnDidEndTextFieldEditing(); |
208 void OnHideAutofillPopup(); | 208 void OnHideAutofillPopup(); |
209 void OnAddPasswordFormMapping( | 209 void OnAddPasswordFormMapping( |
210 const webkit::forms::FormField& form, | 210 const webkit::forms::FormField& form, |
211 const webkit::forms::PasswordFormFillData& fill_data); | 211 const webkit::forms::PasswordFormFillData& fill_data); |
212 void OnShowPasswordSuggestions(const webkit::forms::FormField& field, | 212 void OnShowPasswordSuggestions(const webkit::forms::FormField& field, |
213 const gfx::Rect& bounds, | 213 const gfx::Rect& bounds, |
214 const std::vector<string16>& suggestions); | 214 const std::vector<string16>& suggestions); |
| 215 void OnSetDataList(const std::vector<string16>& values, |
| 216 const std::vector<string16>& labels, |
| 217 const std::vector<string16>& icons, |
| 218 const std::vector<int>& unique_ids); |
215 | 219 |
216 // Fills |host| with the RenderViewHost for this tab. | 220 // Fills |host| with the RenderViewHost for this tab. |
217 // Returns false if Autofill is disabled or if the host is unavailable. | 221 // Returns false if Autofill is disabled or if the host is unavailable. |
218 bool GetHost(const std::vector<AutofillProfile*>& profiles, | 222 bool GetHost(const std::vector<AutofillProfile*>& profiles, |
219 const std::vector<CreditCard*>& credit_cards, | 223 const std::vector<CreditCard*>& credit_cards, |
220 content::RenderViewHost** host) const WARN_UNUSED_RESULT; | 224 content::RenderViewHost** host) const WARN_UNUSED_RESULT; |
221 | 225 |
222 // Unpacks |unique_id| and fills |profile| or |credit_card| with the | 226 // Unpacks |unique_id| and fills |profile| or |credit_card| with the |
223 // appropriate data source. Returns false if the unpacked id cannot be found. | 227 // appropriate data source. Returns false if the unpacked id cannot be found. |
224 bool GetProfileOrCreditCard(int unique_id, | 228 bool GetProfileOrCreditCard(int unique_id, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 TestTabContentsWithExternalDelegate); | 393 TestTabContentsWithExternalDelegate); |
390 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 394 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
391 UserHappinessFormLoadAndSubmission); | 395 UserHappinessFormLoadAndSubmission); |
392 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 396 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
393 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); | 397 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); |
394 | 398 |
395 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 399 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
396 }; | 400 }; |
397 | 401 |
398 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 402 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |