OLD | NEW |
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_WALLET_ITEMS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 } | 248 } |
249 const std::vector<Address*>& addresses() const { return addresses_.get(); } | 249 const std::vector<Address*>& addresses() const { return addresses_.get(); } |
250 const std::string& default_address_id() const { return default_address_id_; } | 250 const std::string& default_address_id() const { return default_address_id_; } |
251 const std::string& obfuscated_gaia_id() const { return obfuscated_gaia_id_; } | 251 const std::string& obfuscated_gaia_id() const { return obfuscated_gaia_id_; } |
252 const std::vector<LegalDocument*>& legal_documents() const { | 252 const std::vector<LegalDocument*>& legal_documents() const { |
253 return legal_documents_.get(); | 253 return legal_documents_.get(); |
254 } | 254 } |
255 | 255 |
256 private: | 256 private: |
257 friend class WalletItemsTest; | 257 friend class WalletItemsTest; |
258 friend scoped_ptr<WalletItems> GetTestWalletItems(); | 258 friend scoped_ptr<WalletItems> GetTestWalletItemsWithDefaultIds( |
| 259 const std::string&, const std::string&); |
259 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateWalletItems); | 260 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateWalletItems); |
260 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, | 261 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, |
261 CreateWalletItemsWithRequiredActions); | 262 CreateWalletItemsWithRequiredActions); |
262 | 263 |
263 WalletItems(const std::vector<RequiredAction>& required_actions, | 264 WalletItems(const std::vector<RequiredAction>& required_actions, |
264 const std::string& google_transaction_id, | 265 const std::string& google_transaction_id, |
265 const std::string& default_instrument_id, | 266 const std::string& default_instrument_id, |
266 const std::string& default_address_id, | 267 const std::string& default_address_id, |
267 const std::string& obfuscated_gaia_id); | 268 const std::string& obfuscated_gaia_id); |
268 | 269 |
(...skipping 22 matching lines...) Expand all Loading... |
291 // Legal documents the user must accept before using Online Wallet. | 292 // Legal documents the user must accept before using Online Wallet. |
292 ScopedVector<LegalDocument> legal_documents_; | 293 ScopedVector<LegalDocument> legal_documents_; |
293 | 294 |
294 DISALLOW_COPY_AND_ASSIGN(WalletItems); | 295 DISALLOW_COPY_AND_ASSIGN(WalletItems); |
295 }; | 296 }; |
296 | 297 |
297 } // namespace wallet | 298 } // namespace wallet |
298 } // namespace autofill | 299 } // namespace autofill |
299 | 300 |
300 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ | 301 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ITEMS_H_ |
OLD | NEW |