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

Unified Diff: chrome/browser/autofill/wallet/wallet_client.h

Issue 11773037: Implementation of sensitive card information escrowing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing Ilya's final comments Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autofill/wallet/wallet_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/wallet/wallet_client.h
diff --git a/chrome/browser/autofill/wallet/wallet_client.h b/chrome/browser/autofill/wallet/wallet_client.h
index 130499c2870365ac6b195d1e841ba3df45c16b51..d1b3a58768e4ae5124f4cdf9bd006a88746231a5 100644
--- a/chrome/browser/autofill/wallet/wallet_client.h
+++ b/chrome/browser/autofill/wallet/wallet_client.h
@@ -41,6 +41,12 @@ class WalletClient : public net::URLFetcherDelegate {
virtual void OnEncryptOtp(const std::string& encrypted_otp,
const std::string& session_material) = 0;
+ // Called when an EscrowSensitiveInformation request finishes successfully.
+ // |escrow_handle| must be used when saving a new instrument using
+ // SaveInstrument or SaveAdressAndInstrument.
+ virtual void OnDidEscrowSensitiveInformation(
+ const std::string& escrow_handle) = 0;
+
// Called when a GetFullWallet request finishes successfully. Caller owns
// the input pointer.
virtual void OnGetFullWallet(FullWallet* full_wallet) = 0;
@@ -87,6 +93,14 @@ class WalletClient : public net::URLFetcherDelegate {
size_t length,
WalletClientObserver* observer);
+ // Before calling SaveInstrument or SaveAddressAndInstrument, the client must
+ // escrow |primary_account_number| and |card_verfication_number| with Google
+ // Wallet.
+ void EscrowSensitiveInformation(const std::string& primary_account_number,
+ const std::string& card_verification_number,
+ const std::string& obfuscated_gaia_id,
+ WalletClientObserver* observer);
+
// GetFullWallet retrieves the a FullWallet for the user. |instrument_id| and
// |adddress_id| should have been selected by the user in some UI,
// |merchant_domain| should come from the BrowserContext, the |cart|
@@ -121,6 +135,7 @@ class WalletClient : public net::URLFetcherDelegate {
NO_PENDING_REQUEST,
ACCEPT_LEGAL_DOCUMENTS,
ENCRYPT_OTP,
+ ESCROW_SENSITIVE_INFORMATION,
GET_FULL_WALLET,
GET_WALLET_ITEMS,
SEND_STATUS,
« no previous file with comments | « no previous file | chrome/browser/autofill/wallet/wallet_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698