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

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

Issue 2249773002: Scan card holder name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_AUTOFILL_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 }; 79 };
80 80
81 enum UnmaskCardReason { 81 enum UnmaskCardReason {
82 // The card is being unmasked for PaymentRequest. 82 // The card is being unmasked for PaymentRequest.
83 UNMASK_FOR_PAYMENT_REQUEST, 83 UNMASK_FOR_PAYMENT_REQUEST,
84 84
85 // The card is being unmasked for Autofill. 85 // The card is being unmasked for Autofill.
86 UNMASK_FOR_AUTOFILL, 86 UNMASK_FOR_AUTOFILL,
87 }; 87 };
88 88
89 typedef base::Callback<void(const base::string16& /* card number */, 89 typedef base::Callback<void(const base::string16& /* card holder name */,
90 const base::string16& /* card number */,
90 int /* exp month */, 91 int /* exp month */,
91 int /* exp year */)> CreditCardScanCallback; 92 int /* exp year */)> CreditCardScanCallback;
92 93
93 virtual ~AutofillClient() {} 94 virtual ~AutofillClient() {}
94 95
95 // Gets the PersonalDataManager instance associated with the client. 96 // Gets the PersonalDataManager instance associated with the client.
96 virtual PersonalDataManager* GetPersonalDataManager() = 0; 97 virtual PersonalDataManager* GetPersonalDataManager() = 0;
97 98
98 // Gets the AutofillWebDataService instance associated with the client. 99 // Gets the AutofillWebDataService instance associated with the client.
99 virtual scoped_refptr<AutofillWebDataService> GetDatabase() = 0; 100 virtual scoped_refptr<AutofillWebDataService> GetDatabase() = 0;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 virtual bool ShouldShowSigninPromo() = 0; 192 virtual bool ShouldShowSigninPromo() = 0;
192 193
193 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() 194 // Starts the signin flow. Should not be called if ShouldShowSigninPromo()
194 // returns false. 195 // returns false.
195 virtual void StartSigninFlow() = 0; 196 virtual void StartSigninFlow() = 0;
196 }; 197 };
197 198
198 } // namespace autofill 199 } // namespace autofill
199 200
200 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 201 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698