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

Side by Side Diff: chrome/browser/autofill/wallet/cart.h

Issue 11293078: Integrating Online Wallet into Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing HexStringToInt Created 8 years 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
« no previous file with comments | « base/string_number_conversions_unittest.cc ('k') | chrome/browser/autofill/wallet/cart.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
21 // spending limits on the generated proxy card. If the actual amount is not
22 // available, the maximum allowable value should be used: $1850 USD. Online
23 // Wallet is designed to accept price information in addition to information
24 // about the items being purchased hence the name Cart.
25 class Cart {
26 public:
27 Cart(const std::string& total_price, const std::string& currency_code);
28 ~Cart();
29 const std::string& total_price() const { return total_price_; }
30 const std::string& currency_code() const { return currency_code_; }
31 scoped_ptr<base::DictionaryValue> ToDictionary() const;
32
33 private:
34 // |total_price_| must be a formatted as a double with no more than two
35 // decimals, e.g. 100.99
36 std::string total_price_;
37 // |currency_code_| must be one of the ISO 4217 currency codes, e.g. USD.
38 std::string currency_code_;
39 DISALLOW_COPY_AND_ASSIGN(Cart);
40 };
41
42 } // namespace wallet
43
44 #endif // CHROME_BROWSER_AUTOFILL_WALLET_CART_H_
45
OLDNEW
« no previous file with comments | « base/string_number_conversions_unittest.cc ('k') | chrome/browser/autofill/wallet/cart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698