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

Unified Diff: components/autofill/content/browser/wallet/full_wallet.h

Issue 21928004: Add a FullWallet constructor for data obtained from SDK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/autofill/content/browser/wallet/full_wallet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/browser/wallet/full_wallet.h
diff --git a/components/autofill/content/browser/wallet/full_wallet.h b/components/autofill/content/browser/wallet/full_wallet.h
index 61e846a2c020edbaa989cbcc9cdc187ed1d4b8db..84cc82e3835b811cce6c57be48a19cf92233474f 100644
--- a/components/autofill/content/browser/wallet/full_wallet.h
+++ b/components/autofill/content/browser/wallet/full_wallet.h
@@ -41,6 +41,16 @@ class FullWallet {
static scoped_ptr<FullWallet>
CreateFullWallet(const base::DictionaryValue& dictionary);
+ // Returns a wallet built from the provided clear-text data.
+ // Data is not validated; |pan|, |cvn| and |billing_address| must be set.
+ static scoped_ptr<FullWallet>
+ CreateFullWalletFromClearText(int expiration_month,
+ int expiration_year,
+ const std::string& pan,
+ const std::string& cvn,
+ scoped_ptr<Address> billing_address,
+ scoped_ptr<Address> shipping_address);
+
// Returns corresponding data for |type|.
base::string16 GetInfo(const AutofillType& type);
@@ -80,6 +90,7 @@ class FullWallet {
FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthCorrectDecryptionTest);
FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthUnderDecryptionTest);
FRIEND_TEST_ALL_PREFIXES(FullWalletTest, GetCreditCardInfo);
+
FullWallet(int expiration_month,
int expiration_year,
const std::string& iin,
« no previous file with comments | « no previous file | components/autofill/content/browser/wallet/full_wallet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698