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

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: 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
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..7322feb9734afbeae5d7d0113400182fa77c811e 100644
--- a/chrome/browser/autofill/wallet/wallet_client.h
+++ b/chrome/browser/autofill/wallet/wallet_client.h
@@ -41,6 +41,10 @@ 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.
+ virtual void OnEscrowSensitiveInformation(
+ 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 +91,14 @@ class WalletClient : public net::URLFetcherDelegate {
size_t length,
WalletClientObserver* observer);
+ // Before calling SaveToWallet with a new instrument, the client must escrow
+ // the primary account number, |pan|, and card verfication number, |cvn|, with
+ // Google Wallet.
+ void EscrowSensitiveInformation(const std::string& pan,
+ const std::string& cvn,
+ 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 +133,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') | chrome/browser/autofill/wallet/wallet_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698