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

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

Issue 13973004: Convert string16 -> base::string16 in components/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void OnDidPreviewAutofillFormData(); 104 void OnDidPreviewAutofillFormData();
105 void OnShowPasswordGenerationPopup(const gfx::Rect& bounds, 105 void OnShowPasswordGenerationPopup(const gfx::Rect& bounds,
106 int max_length, 106 int max_length,
107 const content::PasswordForm& form); 107 const content::PasswordForm& form);
108 108
109 // Remove the credit card or Autofill profile that matches |unique_id| 109 // Remove the credit card or Autofill profile that matches |unique_id|
110 // from the database. 110 // from the database.
111 void RemoveAutofillProfileOrCreditCard(int unique_id); 111 void RemoveAutofillProfileOrCreditCard(int unique_id);
112 112
113 // Remove the specified Autocomplete entry. 113 // Remove the specified Autocomplete entry.
114 void RemoveAutocompleteEntry(const string16& name, const string16& value); 114 void RemoveAutocompleteEntry(const base::string16& name,
115 const base::string16& value);
115 116
116 // Returns the present web_contents state. 117 // Returns the present web_contents state.
117 content::WebContents* GetWebContents() const; 118 content::WebContents* GetWebContents() const;
118 119
119 // Returns the present form structures seen by Autofill manager. 120 // Returns the present form structures seen by Autofill manager.
120 const std::vector<FormStructure*>& GetFormStructures(); 121 const std::vector<FormStructure*>& GetFormStructures();
121 122
122 // Causes the dialog for request autocomplete feature to be shown. 123 // Causes the dialog for request autocomplete feature to be shown.
123 virtual void ShowRequestAutocompleteDialog( 124 virtual void ShowRequestAutocompleteDialog(
124 const FormData& form, 125 const FormData& form,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 void OnQueryFormFieldAutofill(int query_id, 254 void OnQueryFormFieldAutofill(int query_id,
254 const FormData& form, 255 const FormData& form,
255 const FormFieldData& field, 256 const FormFieldData& field,
256 const gfx::RectF& bounding_box, 257 const gfx::RectF& bounding_box,
257 bool display_warning); 258 bool display_warning);
258 void OnDidEndTextFieldEditing(); 259 void OnDidEndTextFieldEditing();
259 void OnHideAutofillUi(); 260 void OnHideAutofillUi();
260 void OnAddPasswordFormMapping( 261 void OnAddPasswordFormMapping(
261 const FormFieldData& form, 262 const FormFieldData& form,
262 const PasswordFormFillData& fill_data); 263 const PasswordFormFillData& fill_data);
263 void OnShowPasswordSuggestions(const FormFieldData& field, 264 void OnShowPasswordSuggestions(
264 const gfx::RectF& bounds, 265 const FormFieldData& field,
265 const std::vector<string16>& suggestions); 266 const gfx::RectF& bounds,
266 void OnSetDataList(const std::vector<string16>& values, 267 const std::vector<base::string16>& suggestions);
267 const std::vector<string16>& labels, 268 void OnSetDataList(const std::vector<base::string16>& values,
268 const std::vector<string16>& icons, 269 const std::vector<base::string16>& labels,
270 const std::vector<base::string16>& icons,
269 const std::vector<int>& unique_ids); 271 const std::vector<int>& unique_ids);
270 272
271 // Requests an interactive autocomplete UI be shown. 273 // Requests an interactive autocomplete UI be shown.
272 void OnRequestAutocomplete(const FormData& form, 274 void OnRequestAutocomplete(const FormData& form,
273 const GURL& frame_url); 275 const GURL& frame_url);
274 276
275 // Passes return data for an OnRequestAutocomplete call back to the page. 277 // Passes return data for an OnRequestAutocomplete call back to the page.
276 void ReturnAutocompleteData(const FormStructure* result, 278 void ReturnAutocompleteData(const FormStructure* result,
277 const std::string& unused_transaction_id); 279 const std::string& unused_transaction_id);
278 280
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 bool UpdateCachedForm(const FormData& live_form, 325 bool UpdateCachedForm(const FormData& live_form,
324 const FormStructure* cached_form, 326 const FormStructure* cached_form,
325 FormStructure** updated_form) WARN_UNUSED_RESULT; 327 FormStructure** updated_form) WARN_UNUSED_RESULT;
326 328
327 // Returns a list of values from the stored profiles that match |type| and the 329 // Returns a list of values from the stored profiles that match |type| and the
328 // value of |field| and returns the labels of the matching profiles. |labels| 330 // value of |field| and returns the labels of the matching profiles. |labels|
329 // is filled with the Profile label. 331 // is filled with the Profile label.
330 void GetProfileSuggestions(FormStructure* form, 332 void GetProfileSuggestions(FormStructure* form,
331 const FormFieldData& field, 333 const FormFieldData& field,
332 AutofillFieldType type, 334 AutofillFieldType type,
333 std::vector<string16>* values, 335 std::vector<base::string16>* values,
334 std::vector<string16>* labels, 336 std::vector<base::string16>* labels,
335 std::vector<string16>* icons, 337 std::vector<base::string16>* icons,
336 std::vector<int>* unique_ids) const; 338 std::vector<int>* unique_ids) const;
337 339
338 // Returns a list of values from the stored credit cards that match |type| and 340 // Returns a list of values from the stored credit cards that match |type| and
339 // the value of |field| and returns the labels of the matching credit cards. 341 // the value of |field| and returns the labels of the matching credit cards.
340 void GetCreditCardSuggestions(const FormFieldData& field, 342 void GetCreditCardSuggestions(const FormFieldData& field,
341 AutofillFieldType type, 343 AutofillFieldType type,
342 std::vector<string16>* values, 344 std::vector<base::string16>* values,
343 std::vector<string16>* labels, 345 std::vector<base::string16>* labels,
344 std::vector<string16>* icons, 346 std::vector<base::string16>* icons,
345 std::vector<int>* unique_ids) const; 347 std::vector<int>* unique_ids) const;
346 348
347 // Parses the forms using heuristic matching and querying the Autofill server. 349 // Parses the forms using heuristic matching and querying the Autofill server.
348 void ParseForms(const std::vector<FormData>& forms); 350 void ParseForms(const std::vector<FormData>& forms);
349 351
350 // Imports the form data, submitted by the user, into |personal_data_|. 352 // Imports the form data, submitted by the user, into |personal_data_|.
351 void ImportFormData(const FormStructure& submitted_form); 353 void ImportFormData(const FormStructure& submitted_form);
352 354
353 // If |initial_interaction_timestamp_| is unset or is set to a later time than 355 // If |initial_interaction_timestamp_| is unset or is set to a later time than
354 // |interaction_timestamp|, updates the cached timestamp. The latter check is 356 // |interaction_timestamp|, updates the cached timestamp. The latter check is
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 458 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
457 TestTabContentsWithExternalDelegate); 459 TestTabContentsWithExternalDelegate);
458 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 460 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
459 UserHappinessFormLoadAndSubmission); 461 UserHappinessFormLoadAndSubmission);
460 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 462 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
461 463
462 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 464 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
463 }; 465 };
464 466
465 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ 467 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698