diff options
author | ahutter@chromium.org <ahutter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-04 05:53:55 +0000 |
---|---|---|
committer | ahutter@chromium.org <ahutter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-04 05:53:55 +0000 |
commit | 61a5a81d54b382fc8a244d98c2b5857cc1eeec4d (patch) | |
tree | f98fbe0d983034e369fe7a0cccf2ff73e366d40e /components/autofill/browser/wallet/cart.h | |
parent | e8dad9bc446a8a1f51fe9cba4c3dda7e8297379f (diff) | |
download | chromium_src-61a5a81d54b382fc8a244d98c2b5857cc1eeec4d.zip chromium_src-61a5a81d54b382fc8a244d98c2b5857cc1eeec4d.tar.gz chromium_src-61a5a81d54b382fc8a244d98c2b5857cc1eeec4d.tar.bz2 |
Carts are deprecated by the latest version of the server
BUG= 240333
Review URL: https://chromiumcodereview.appspot.com/14836006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/autofill/browser/wallet/cart.h')
-rw-r--r-- | components/autofill/browser/wallet/cart.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/components/autofill/browser/wallet/cart.h b/components/autofill/browser/wallet/cart.h deleted file mode 100644 index fc106c1..0000000 --- a/components/autofill/browser/wallet/cart.h +++ /dev/null @@ -1,50 +0,0 @@ -// 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 COMPONENTS_AUTOFILL_BROWSER_WALLET_CART_H_ -#define COMPONENTS_AUTOFILL_BROWSER_WALLET_CART_H_ - -#include <string> - -#include "base/basictypes.h" -#include "base/memory/scoped_ptr.h" - -namespace base { -class DictionaryValue; -} - -namespace autofill { -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 -// 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(); - - scoped_ptr<base::DictionaryValue> ToDictionary() const; - - const std::string& total_price() const { return total_price_; } - const std::string& currency_code() const { return currency_code_; } - - private: - // |total_price_| must be a formatted as a double with no more than two - // decimals, e.g. 100.99 - std::string total_price_; - - // |currency_code_| must be one of the ISO 4217 currency codes, e.g. USD. - std::string currency_code_; - - DISALLOW_ASSIGN(Cart); -}; - -} // namespace wallet -} // namespace autofill - -#endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_CART_H_ |