Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/autofill/autofill_manager.h

Issue 11270018: [autofill] Adding new API to request an interactive autocomplete UI flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
220 void OnAddPasswordFormMapping( 220 void OnAddPasswordFormMapping(
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 void OnRequestAutocomplete(const FormData& form);
Evan Stade 2012/10/24 21:59:44 I don't know if this belongs here. You have to imp
Ilya Sherman 2012/10/26 03:35:28 This does belong here. We shouldn't need to touch
230 231
231 // Fills |host| with the RenderViewHost for this tab. 232 // Fills |host| with the RenderViewHost for this tab.
232 // Returns false if Autofill is disabled or if the host is unavailable. 233 // Returns false if Autofill is disabled or if the host is unavailable.
233 bool GetHost(const std::vector<AutofillProfile*>& profiles, 234 bool GetHost(const std::vector<AutofillProfile*>& profiles,
234 const std::vector<CreditCard*>& credit_cards, 235 const std::vector<CreditCard*>& credit_cards,
235 content::RenderViewHost** host) const WARN_UNUSED_RESULT; 236 content::RenderViewHost** host) const WARN_UNUSED_RESULT;
236 237
237 // Unpacks |unique_id| and fills |profile| or |credit_card| with the 238 // Unpacks |unique_id| and fills |profile| or |credit_card| with the
238 // appropriate data source. Returns false if the unpacked id cannot be found. 239 // appropriate data source. Returns false if the unpacked id cannot be found.
239 bool GetProfileOrCreditCard(int unique_id, 240 bool GetProfileOrCreditCard(int unique_id,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 TestTabContentsWithExternalDelegate); 408 TestTabContentsWithExternalDelegate);
408 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 409 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
409 UserHappinessFormLoadAndSubmission); 410 UserHappinessFormLoadAndSubmission);
410 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 411 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
411 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); 412 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration);
412 413
413 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 414 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
414 }; 415 };
415 416
416 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 417 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | chrome/renderer/autofill/autofill_agent.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698