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

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

Issue 2607043002: [Autofill] Credit Card Autofill Last Used Date Experiment (Closed)
Patch Set: Added unittest dependency Created 3 years, 11 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 <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // vector. 213 // vector.
214 const std::vector<CreditCard*> GetCreditCardsToSuggest() const; 214 const std::vector<CreditCard*> GetCreditCardsToSuggest() const;
215 215
216 // Gets credit cards that can suggest data for |type|. See 216 // Gets credit cards that can suggest data for |type|. See
217 // GetProfileSuggestions for argument descriptions. The variant in each 217 // GetProfileSuggestions for argument descriptions. The variant in each
218 // GUID pair should be ignored. 218 // GUID pair should be ignored.
219 std::vector<Suggestion> GetCreditCardSuggestions( 219 std::vector<Suggestion> GetCreditCardSuggestions(
220 const AutofillType& type, 220 const AutofillType& type,
221 const base::string16& field_contents); 221 const base::string16& field_contents);
222 222
223 // Returns the date when the credit card was last used in autofill, show
224 // expiration date if |show_expiration_date| is true, and show time detail
225 // if |show_time_detail| is true.
Jared Saul 2017/01/25 18:22:17 nit, minor wording changes: // Returns the date
jiahuiguo 2017/01/26 05:46:13 Done.
226 base::string16 GetLastUsedDateForDisplay(
227 const CreditCard* credit_card,
228 bool show_expiration_date,
229 bool show_time_detail) const;
230
223 // Re-loads profiles and credit cards from the WebDatabase asynchronously. 231 // Re-loads profiles and credit cards from the WebDatabase asynchronously.
224 // In the general case, this is a no-op and will re-create the same 232 // In the general case, this is a no-op and will re-create the same
225 // in-memory model as existed prior to the call. If any change occurred to 233 // in-memory model as existed prior to the call. If any change occurred to
226 // profiles in the WebDatabase directly, as is the case if the browser sync 234 // profiles in the WebDatabase directly, as is the case if the browser sync
227 // engine processed a change from the cloud, we will learn of these as a 235 // engine processed a change from the cloud, we will learn of these as a
228 // result of this call. 236 // result of this call.
229 // 237 //
230 // Also see SetProfile for more details. 238 // Also see SetProfile for more details.
231 virtual void Refresh(); 239 virtual void Refresh();
232 240
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 // validation rules. 554 // validation rules.
547 scoped_refptr<net::URLRequestContextGetter> context_getter_; 555 scoped_refptr<net::URLRequestContextGetter> context_getter_;
548 #endif 556 #endif
549 557
550 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 558 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
551 }; 559 };
552 560
553 } // namespace autofill 561 } // namespace autofill
554 562
555 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 563 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698