Chromium Code Reviews| Index: components/autofill/browser/wallet/full_wallet.h |
| diff --git a/components/autofill/browser/wallet/full_wallet.h b/components/autofill/browser/wallet/full_wallet.h |
| index c6f2ab50f20f2eadf40d13f1fee853da6b262241..bb30d72d2254aa0ef05f3083b2d83cb0b2a67ba0 100644 |
| --- a/components/autofill/browser/wallet/full_wallet.h |
| +++ b/components/autofill/browser/wallet/full_wallet.h |
| @@ -45,6 +45,10 @@ class FullWallet { |
| // one time pad, |one_time_pad_|. |
| const std::string& GetCvn(); |
| + // Returns corresponding data for |type|. |is_billing| is used to determine |
| + // which address to use when |type| is an ADDRESS_HOME_* AutofillFieldType. |
| + string16 GetInfo(AutofillFieldType type, bool is_billing); |
|
Evan Stade
2013/03/14 02:39:38
leave this file alone, do it all in data model wra
Dan Beam
2013/03/14 04:31:51
we talked about this -- the stuff that has to do w
|
| + |
| // Whether or not |action| is in |required_actions_|. |
| bool HasRequiredAction(RequiredAction action) const; |
| @@ -79,8 +83,13 @@ class FullWallet { |
| scoped_ptr<Address> billing_address, |
| scoped_ptr<Address> shipping_address, |
| const std::vector<RequiredAction>& required_actions); |
| + |
| + // Decrypts both |pan_| and |cvn_|. |
| void DecryptCardInfo(); |
| + // Returns either the billing or shipping address based on |is_billing|. |
| + const Address* GetAddress(bool is_billing) const; |
| + |
| // The expiration month of the proxy card. It should be 1-12. |
| int expiration_month_; |