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

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

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bool fix 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 23 matching lines...) Expand all
34 namespace sync_driver { 34 namespace sync_driver {
35 class SyncService; 35 class SyncService;
36 } 36 }
37 37
38 class GURL; 38 class GURL;
39 class PrefService; 39 class PrefService;
40 40
41 namespace autofill { 41 namespace autofill {
42 42
43 class AutofillPopupDelegate; 43 class AutofillPopupDelegate;
44 class AutofillProfile;
please use gerrit instead 2016/07/29 16:33:20 Not used anywhere in this file.
Mathieu 2016/07/29 20:19:17 Done.
44 class AutofillWebDataService; 45 class AutofillWebDataService;
45 class CardUnmaskDelegate; 46 class CardUnmaskDelegate;
46 class CreditCard; 47 class CreditCard;
47 class FormStructure; 48 class FormStructure;
48 class PersonalDataManager; 49 class PersonalDataManager;
49 struct FormData; 50 struct FormData;
50 struct Suggestion; 51 struct Suggestion;
51 52
52 // A client interface that needs to be supplied to the Autofill component by the 53 // A client interface that needs to be supplied to the Autofill component by the
53 // embedder. 54 // embedder.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 virtual void ConfirmSaveCreditCardLocally(const CreditCard& card, 126 virtual void ConfirmSaveCreditCardLocally(const CreditCard& card,
126 const base::Closure& callback) = 0; 127 const base::Closure& callback) = 0;
127 128
128 // Runs |callback| if the |card| should be uploaded to Payments. Displays the 129 // Runs |callback| if the |card| should be uploaded to Payments. Displays the
129 // contents of |legal_message| to the user. 130 // contents of |legal_message| to the user.
130 virtual void ConfirmSaveCreditCardToCloud( 131 virtual void ConfirmSaveCreditCardToCloud(
131 const CreditCard& card, 132 const CreditCard& card,
132 std::unique_ptr<base::DictionaryValue> legal_message, 133 std::unique_ptr<base::DictionaryValue> legal_message,
133 const base::Closure& callback) = 0; 134 const base::Closure& callback) = 0;
134 135
136 // Will show an infobar to get user consent for Credit Card assistive filling.
137 // Will run |callback| on success.
138 virtual void ConfirmCreditCardFillAssist(const CreditCard& card,
139 const base::Closure& callback) = 0;
140
135 // Gathers risk data and provides it to |callback|. 141 // Gathers risk data and provides it to |callback|.
136 virtual void LoadRiskData( 142 virtual void LoadRiskData(
137 const base::Callback<void(const std::string&)>& callback) = 0; 143 const base::Callback<void(const std::string&)>& callback) = 0;
138 144
139 // Returns true if both the platform and the device support scanning credit 145 // Returns true if both the platform and the device support scanning credit
140 // cards. Should be called before ScanCreditCard(). 146 // cards. Should be called before ScanCreditCard().
141 virtual bool HasCreditCardScanFeature() = 0; 147 virtual bool HasCreditCardScanFeature() = 0;
142 148
143 // Shows the user interface for scanning a credit card. Invokes the |callback| 149 // Shows the user interface for scanning a credit card. Invokes the |callback|
144 // when a credit card is scanned successfully. Should be called only if 150 // when a credit card is scanned successfully. Should be called only if
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 virtual bool ShouldShowSigninPromo() = 0; 192 virtual bool ShouldShowSigninPromo() = 0;
187 193
188 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() 194 // Starts the signin flow. Should not be called if ShouldShowSigninPromo()
189 // returns false. 195 // returns false.
190 virtual void StartSigninFlow() = 0; 196 virtual void StartSigninFlow() = 0;
191 }; 197 };
192 198
193 } // namespace autofill 199 } // namespace autofill
194 200
195 #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