Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_WALLET_CART_H_ | |
| 6 #define CHROME_BROWSER_AUTOFILL_WALLET_CART_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 | |
| 13 namespace base { | |
| 14 class DictionaryValue; | |
| 15 } | |
| 16 | |
| 17 namespace wallet { | |
| 18 | |
| 19 // Container object for purchase data provided by the browser. The enclosed data | |
| 20 // is required to request a FullWallet from Online Wallet in order to set | |
|
Albert Bodenhamer
2012/12/05 18:56:45
Callers of requestAutcomplete MIGHT not have this
ahutter
2012/12/05 23:37:23
Done.
| |
| 21 // spending limits on the generated proxy card. | |
| 22 class Cart { | |
|
Albert Bodenhamer
2012/12/05 18:56:45
I understand the need to match the vocabulary to S
ahutter
2012/12/05 23:37:23
Done.
| |
| 23 public: | |
| 24 Cart(const std::string& total_price, const std::string& currency_code); | |
| 25 ~Cart(); | |
| 26 const std::string total_price() const { return total_price_; } | |
| 27 const std::string currency_code() const { return currency_code_; } | |
| 28 scoped_ptr<base::DictionaryValue> ToDictionary() const; | |
| 29 | |
| 30 private: | |
| 31 std::string total_price_; | |
| 32 std::string currency_code_; | |
| 33 DISALLOW_COPY_AND_ASSIGN(Cart); | |
| 34 }; | |
| 35 | |
| 36 } // end wallet namespace | |
| 37 | |
| 38 #endif // CHROME_BROWSER_AUTOFILL_WALLET_CART_H_ | |
| OLD | NEW |