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(int unique_id, const FormData& form); | |
Ilya Sherman
2012/10/27 07:44:11
nit: Perhaps "ipc_message_id" rather than "unique_
Dan Beam
2012/10/29 19:17:05
Done.
| |
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
407 TestTabContentsWithExternalDelegate); | 410 TestTabContentsWithExternalDelegate); |
408 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 411 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
409 UserHappinessFormLoadAndSubmission); | 412 UserHappinessFormLoadAndSubmission); |
410 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 413 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
411 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); | 414 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); |
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 |