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

Side by Side Diff: components/autofill/core/browser/personal_data_manager.h

Issue 622773002: [Autofill] Autofill fails to show suggestions for credit card split across fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const std::vector<ServerFieldType>& other_field_types, 148 const std::vector<ServerFieldType>& other_field_types,
149 const base::Callback<bool(const AutofillProfile&)>& filter, 149 const base::Callback<bool(const AutofillProfile&)>& filter,
150 std::vector<base::string16>* values, 150 std::vector<base::string16>* values,
151 std::vector<base::string16>* labels, 151 std::vector<base::string16>* labels,
152 std::vector<base::string16>* icons, 152 std::vector<base::string16>* icons,
153 std::vector<GUIDPair>* guid_pairs); 153 std::vector<GUIDPair>* guid_pairs);
154 154
155 // Gets credit cards that can suggest data for |type|. See 155 // Gets credit cards that can suggest data for |type|. See
156 // GetProfileSuggestions for argument descriptions. The variant in each 156 // GetProfileSuggestions for argument descriptions. The variant in each
157 // GUID pair should be ignored. 157 // GUID pair should be ignored.
158 void GetCreditCardSuggestions( 158 void GetCreditCardSuggestions(const AutofillType& type,
159 const AutofillType& type, 159 const base::string16& field_contents,
160 const base::string16& field_contents, 160 std::vector<base::string16>* values,
161 std::vector<base::string16>* values, 161 std::vector<base::string16>* labels,
162 std::vector<base::string16>* labels, 162 std::vector<base::string16>* icons,
163 std::vector<base::string16>* icons, 163 std::vector<GUIDPair>* guid_pairs,
164 std::vector<GUIDPair>* guid_pairs); 164 bool obfuscate_number = true);
165 165
166 // Re-loads profiles and credit cards from the WebDatabase asynchronously. 166 // Re-loads profiles and credit cards from the WebDatabase asynchronously.
167 // In the general case, this is a no-op and will re-create the same 167 // In the general case, this is a no-op and will re-create the same
168 // in-memory model as existed prior to the call. If any change occurred to 168 // in-memory model as existed prior to the call. If any change occurred to
169 // profiles in the WebDatabase directly, as is the case if the browser sync 169 // profiles in the WebDatabase directly, as is the case if the browser sync
170 // engine processed a change from the cloud, we will learn of these as a 170 // engine processed a change from the cloud, we will learn of these as a
171 // result of this call. 171 // result of this call.
172 // 172 //
173 // Also see SetProfile for more details. 173 // Also see SetProfile for more details.
174 virtual void Refresh(); 174 virtual void Refresh();
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 // An observer to listen for changes to prefs::kAutofillEnabled. 374 // An observer to listen for changes to prefs::kAutofillEnabled.
375 scoped_ptr<BooleanPrefMember> enabled_pref_; 375 scoped_ptr<BooleanPrefMember> enabled_pref_;
376 376
377 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 377 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
378 }; 378 };
379 379
380 } // namespace autofill 380 } // namespace autofill
381 381
382 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 382 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698