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

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

Issue 1540423004: Add card details and legal message to Android save credit card infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android 64-bit compile. Created 4 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 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 <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Causes the Autofill settings UI to be shown. 112 // Causes the Autofill settings UI to be shown.
113 virtual void ShowAutofillSettings() = 0; 113 virtual void ShowAutofillSettings() = 0;
114 114
115 // A user has attempted to use a masked card. Prompt them for further 115 // A user has attempted to use a masked card. Prompt them for further
116 // information to proceed. 116 // information to proceed.
117 virtual void ShowUnmaskPrompt(const CreditCard& card, 117 virtual void ShowUnmaskPrompt(const CreditCard& card,
118 base::WeakPtr<CardUnmaskDelegate> delegate) = 0; 118 base::WeakPtr<CardUnmaskDelegate> delegate) = 0;
119 virtual void OnUnmaskVerificationResult(PaymentsRpcResult result) = 0; 119 virtual void OnUnmaskVerificationResult(PaymentsRpcResult result) = 0;
120 120
121 // Runs |callback| if the credit card should be imported as personal 121 // Runs |callback| if the |card| should be imported as personal data.
122 // data. |metric_logger| can be used to log user actions. 122 // |metric_logger| can be used to log user actions.
123 virtual void ConfirmSaveCreditCardLocally(const base::Closure& callback) = 0; 123 virtual void ConfirmSaveCreditCardLocally(const CreditCard& card,
124 const base::Closure& callback) = 0;
124 125
125 // Runs |callback| if the credit card should be uploaded to Payments. Displays 126 // Runs |callback| if the |card| should be uploaded to Payments. Displays the
126 // the contents of |legal_message| to the user. 127 // contents of |legal_message| to the user.
127 virtual void ConfirmSaveCreditCardToCloud( 128 virtual void ConfirmSaveCreditCardToCloud(
128 const base::Closure& callback, 129 const CreditCard& card,
129 scoped_ptr<base::DictionaryValue> legal_message) = 0; 130 scoped_ptr<base::DictionaryValue> legal_message,
131 const base::Closure& callback) = 0;
130 132
131 // Gathers risk data and provides it to |callback|. 133 // Gathers risk data and provides it to |callback|.
132 virtual void LoadRiskData( 134 virtual void LoadRiskData(
133 const base::Callback<void(const std::string&)>& callback) = 0; 135 const base::Callback<void(const std::string&)>& callback) = 0;
134 136
135 // Returns true if both the platform and the device support scanning credit 137 // Returns true if both the platform and the device support scanning credit
136 // cards. Should be called before ScanCreditCard(). 138 // cards. Should be called before ScanCreditCard().
137 virtual bool HasCreditCardScanFeature() = 0; 139 virtual bool HasCreditCardScanFeature() = 0;
138 140
139 // Shows the user interface for scanning a credit card. Invokes the |callback| 141 // Shows the user interface for scanning a credit card. Invokes the |callback|
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Informs the client that a user gesture has been observed. 183 // Informs the client that a user gesture has been observed.
182 virtual void OnFirstUserGestureObserved() = 0; 184 virtual void OnFirstUserGestureObserved() = 0;
183 185
184 // If the context is secure. 186 // If the context is secure.
185 virtual bool IsContextSecure(const GURL& form_origin) = 0; 187 virtual bool IsContextSecure(const GURL& form_origin) = 0;
186 }; 188 };
187 189
188 } // namespace autofill 190 } // namespace autofill
189 191
190 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 192 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698