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

Side by Side Diff: components/autofill/content/browser/wallet/full_wallet.h

Issue 20420002: Make Wallet respect whether or not shipping address is required. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wallet client respects delegates shipping preference. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 int expiration_month() const { return expiration_month_; } 64 int expiration_month() const { return expiration_month_; }
65 int expiration_year() const { return expiration_year_; } 65 int expiration_year() const { return expiration_year_; }
66 66
67 void set_one_time_pad(const std::vector<uint8>& one_time_pad) { 67 void set_one_time_pad(const std::vector<uint8>& one_time_pad) {
68 one_time_pad_ = one_time_pad; 68 one_time_pad_ = one_time_pad;
69 } 69 }
70 70
71 private: 71 private:
72 friend class FullWalletTest; 72 friend class FullWalletTest;
73 friend scoped_ptr<FullWallet> GetTestFullWallet(); 73 friend scoped_ptr<FullWallet> GetTestFullWallet();
74 friend scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly();
74 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, CreateFullWallet); 75 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, CreateFullWallet);
75 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, CreateFullWalletWithRequiredActions); 76 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, CreateFullWalletWithRequiredActions);
76 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthCorrectDecryptionTest); 77 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthCorrectDecryptionTest);
77 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthUnderDecryptionTest); 78 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthUnderDecryptionTest);
78 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, GetCreditCardInfo); 79 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, GetCreditCardInfo);
79 FullWallet(int expiration_month, 80 FullWallet(int expiration_month,
80 int expiration_year, 81 int expiration_year,
81 const std::string& iin, 82 const std::string& iin,
82 const std::string& encrypted_rest, 83 const std::string& encrypted_rest,
83 scoped_ptr<Address> billing_address, 84 scoped_ptr<Address> billing_address,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // The one time pad used for FullWallet encryption. 127 // The one time pad used for FullWallet encryption.
127 std::vector<uint8> one_time_pad_; 128 std::vector<uint8> one_time_pad_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(FullWallet); 130 DISALLOW_COPY_AND_ASSIGN(FullWallet);
130 }; 131 };
131 132
132 } // namespace wallet 133 } // namespace wallet
133 } // namespace autofill 134 } // namespace autofill
134 135
135 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ 136 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698