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

Side by Side Diff: components/autofill/browser/personal_data_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_PERSONAL_DATA_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 virtual const std::vector<AutofillProfile*>& GetProfiles(); 121 virtual const std::vector<AutofillProfile*>& GetProfiles();
122 virtual const std::vector<AutofillProfile*>& web_profiles() const; 122 virtual const std::vector<AutofillProfile*>& web_profiles() const;
123 virtual const std::vector<CreditCard*>& credit_cards() const; 123 virtual const std::vector<CreditCard*>& credit_cards() const;
124 124
125 // Loads profiles that can suggest data for |type|. |field_contents| is the 125 // Loads profiles that can suggest data for |type|. |field_contents| is the
126 // part the user has already typed. |field_is_autofilled| is true if the field 126 // part the user has already typed. |field_is_autofilled| is true if the field
127 // has already been autofilled. |other_field_types| represents the rest of 127 // has already been autofilled. |other_field_types| represents the rest of
128 // form. Identifying info is loaded into the last four outparams. 128 // form. Identifying info is loaded into the last four outparams.
129 void GetProfileSuggestions( 129 void GetProfileSuggestions(
130 AutofillFieldType type, 130 AutofillFieldType type,
131 const string16& field_contents, 131 const base::string16& field_contents,
132 bool field_is_autofilled, 132 bool field_is_autofilled,
133 std::vector<AutofillFieldType> other_field_types, 133 std::vector<AutofillFieldType> other_field_types,
134 std::vector<string16>* values, 134 std::vector<base::string16>* values,
135 std::vector<string16>* labels, 135 std::vector<base::string16>* labels,
136 std::vector<string16>* icons, 136 std::vector<base::string16>* icons,
137 std::vector<GUIDPair>* guid_pairs); 137 std::vector<GUIDPair>* guid_pairs);
138 138
139 // Gets credit cards that can suggest data for |type|. See 139 // Gets credit cards that can suggest data for |type|. See
140 // GetProfileSuggestions for argument descriptions. The variant in each 140 // GetProfileSuggestions for argument descriptions. The variant in each
141 // GUID pair should be ignored. 141 // GUID pair should be ignored.
142 void GetCreditCardSuggestions( 142 void GetCreditCardSuggestions(
143 AutofillFieldType type, 143 AutofillFieldType type,
144 const string16& field_contents, 144 const base::string16& field_contents,
145 std::vector<string16>* values, 145 std::vector<base::string16>* values,
146 std::vector<string16>* labels, 146 std::vector<base::string16>* labels,
147 std::vector<string16>* icons, 147 std::vector<base::string16>* icons,
148 std::vector<GUIDPair>* guid_pairs); 148 std::vector<GUIDPair>* guid_pairs);
149 149
150 // Re-loads profiles and credit cards from the WebDatabase asynchronously. 150 // Re-loads profiles and credit cards from the WebDatabase asynchronously.
151 // In the general case, this is a no-op and will re-create the same 151 // In the general case, this is a no-op and will re-create the same
152 // in-memory model as existed prior to the call. If any change occurred to 152 // in-memory model as existed prior to the call. If any change occurred to
153 // profiles in the WebDatabase directly, as is the case if the browser sync 153 // profiles in the WebDatabase directly, as is the case if the browser sync
154 // engine processed a change from the cloud, we will learn of these as a 154 // engine processed a change from the cloud, we will learn of these as a
155 // result of this call. 155 // result of this call.
156 // 156 //
157 // Also see SetProfile for more details. 157 // Also see SetProfile for more details.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // For logging UMA metrics. Overridden by metrics tests. 275 // For logging UMA metrics. Overridden by metrics tests.
276 scoped_ptr<const AutofillMetrics> metric_logger_; 276 scoped_ptr<const AutofillMetrics> metric_logger_;
277 277
278 // Whether we have already logged the number of profiles this session. 278 // Whether we have already logged the number of profiles this session.
279 mutable bool has_logged_profile_count_; 279 mutable bool has_logged_profile_count_;
280 280
281 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 281 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
282 }; 282 };
283 283
284 #endif // COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_ 284 #endif // COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698