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

Side by Side Diff: components/autofill/browser/wallet/wallet_client.h

Issue 12893007: Implementing VERIFY_CVV required action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_WALLET_WALLET_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 std::string obfuscated_gaia_id; 152 std::string obfuscated_gaia_id;
153 153
154 // The url this call is initiated from. 154 // The url this call is initiated from.
155 GURL source_url; 155 GURL source_url;
156 156
157 private: 157 private:
158 DISALLOW_ASSIGN(UpdateInstrumentRequest); 158 DISALLOW_ASSIGN(UpdateInstrumentRequest);
159 }; 159 };
160 160
161 // |context_getter| is reference counted so it has no lifetime or ownership 161 // |context_getter| is reference counted so it has no lifetime or ownership
162 // requirements. |observer| must outlive |this|. 162 // requirements. |delegate| must outlive |this|.
163 WalletClient(net::URLRequestContextGetter* context_getter, 163 WalletClient(net::URLRequestContextGetter* context_getter,
164 WalletClientDelegate* delegate); 164 WalletClientDelegate* delegate);
165 165
166 virtual ~WalletClient(); 166 virtual ~WalletClient();
167 167
168 // GetWalletItems retrieves the user's online wallet. The WalletItems 168 // GetWalletItems retrieves the user's online wallet. The WalletItems
169 // returned may require additional action such as presenting legal documents 169 // returned may require additional action such as presenting legal documents
170 // to the user to be accepted. |risk_capabilities| are the Risk challenges 170 // to the user to be accepted. |risk_capabilities| are the Risk challenges
171 // supported by the users of WalletClient. 171 // supported by the users of WalletClient.
172 void GetWalletItems(const GURL& source_url, 172 void GetWalletItems(const GURL& source_url,
173 const std::vector<RiskCapability>& risk_capabilities); 173 const std::vector<RiskCapability>& risk_capabilities);
174 174
175 // The GetWalletItems call to the Online Wallet backend may require the user 175 // The GetWalletItems call to the Online Wallet backend may require the user
176 // to accept various legal documents before a FullWallet can be generated. 176 // to accept various legal documents before a FullWallet can be generated.
177 // The |google_transaction_id| is provided in the response to the 177 // The |google_transaction_id| is provided in the response to the
178 // GetWalletItems call. 178 // GetWalletItems call.
179 virtual void AcceptLegalDocuments( 179 virtual void AcceptLegalDocuments(
180 const std::vector<WalletItems::LegalDocument*>& documents, 180 const std::vector<WalletItems::LegalDocument*>& documents,
181 const std::string& google_transaction_id, 181 const std::string& google_transaction_id,
182 const GURL& source_url); 182 const GURL& source_url);
183 183
184 // Authenticates that |card_verification_number| is for the backing instrument 184 // Authenticates that |card_verification_number| is for the backing instrument
185 // with |instrument_id|. |obfuscated_gaia_id| is used as a key when escrowing 185 // with |instrument_id|. |obfuscated_gaia_id| is used as a key when escrowing
186 // |card_verification_number|. |observer| is notified when the request is 186 // |card_verification_number|. |delegate_| is notified when the request is
187 // complete. Used to respond to Risk challenges. 187 // complete. Used to respond to Risk challenges.
188 void AuthenticateInstrument(const std::string& instrument_id, 188 virtual void AuthenticateInstrument(
189 const std::string& card_verification_number, 189 const std::string& instrument_id,
190 const std::string& obfuscated_gaia_id); 190 const std::string& card_verification_number,
191 const std::string& obfuscated_gaia_id);
191 192
192 // GetFullWallet retrieves the a FullWallet for the user. 193 // GetFullWallet retrieves the a FullWallet for the user.
193 virtual void GetFullWallet(const FullWalletRequest& full_wallet_request); 194 virtual void GetFullWallet(const FullWalletRequest& full_wallet_request);
194 195
195 // SaveAddress saves a new shipping address. 196 // SaveAddress saves a new shipping address.
196 virtual void SaveAddress(const Address& address, const GURL& source_url); 197 virtual void SaveAddress(const Address& address, const GURL& source_url);
197 198
198 // SaveInstrument saves a new instrument. 199 // SaveInstrument saves a new instrument.
199 virtual void SaveInstrument(const Instrument& instrument, 200 virtual void SaveInstrument(const Instrument& instrument,
200 const std::string& obfuscated_gaia_id, 201 const std::string& obfuscated_gaia_id,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // When the current request started. Used to track client side latency. 323 // When the current request started. Used to track client side latency.
323 base::Time request_started_timestamp_; 324 base::Time request_started_timestamp_;
324 325
325 DISALLOW_COPY_AND_ASSIGN(WalletClient); 326 DISALLOW_COPY_AND_ASSIGN(WalletClient);
326 }; 327 };
327 328
328 } // namespace wallet 329 } // namespace wallet
329 } // namespace autofill 330 } // namespace autofill
330 331
331 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_ 332 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_
OLDNEW
« no previous file with comments | « components/autofill/browser/credit_card.cc ('k') | components/autofill/browser/wallet/wallet_items.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698