Chromium Code Reviews| Index: chrome/browser/autofill/wallet/cart.h |
| diff --git a/chrome/browser/autofill/wallet/cart.h b/chrome/browser/autofill/wallet/cart.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5e844af0a3ac9a6ea00888e15eb701270cf1a192 |
| --- /dev/null |
| +++ b/chrome/browser/autofill/wallet/cart.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_AUTOFILL_WALLET_CART_H_ |
| +#define CHROME_BROWSER_AUTOFILL_WALLET_CART_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +namespace base { |
| +class DictionaryValue; |
| +} |
| + |
| +namespace wallet { |
| + |
| +// Container object for purchase data provided by the browser. The enclosed data |
| +// is required to request a FullWallet from Online Wallet in order to set |
| +// spending limits on the generated proxy card. If the actual amount is not |
|
Evan Stade
2012/12/07 19:57:44
please make # of spaces after periods consistent (
ahutter
2012/12/15 01:06:31
Done.
|
| +// available, the maximum allowable value should be used: $1850 USD. Online |
| +// Wallet is designed to accept price information in addition to information |
| +// about the items being purchased hence the name Cart. |
| +class Cart { |
| + public: |
| + Cart(const std::string& total_price, const std::string& currency_code); |
| + ~Cart(); |
| + const std::string total_price() const { return total_price_; } |
| + const std::string currency_code() const { return currency_code_; } |
| + scoped_ptr<base::DictionaryValue> ToDictionary() const; |
| + |
| + private: |
| + std::string total_price_; |
|
Evan Stade
2012/12/07 19:57:44
what is the format of the price? You should docume
ahutter
2012/12/15 01:06:31
Done.
|
| + std::string currency_code_; |
|
Evan Stade
2012/12/07 19:57:44
ditto
ahutter
2012/12/15 01:06:31
Done.
|
| + DISALLOW_COPY_AND_ASSIGN(Cart); |
| +}; |
| + |
| +} // end wallet namespace |
| + |
| +#endif // CHROME_BROWSER_AUTOFILL_WALLET_CART_H_ |
| + |