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

Unified Diff: chrome/browser/autofill/wallet/cart.h

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/validation_unittest.cc ('k') | chrome/browser/autofill/wallet/cart.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/wallet/cart.h
diff --git a/chrome/browser/autofill/wallet/cart.h b/chrome/browser/autofill/wallet/cart.h
deleted file mode 100644
index b9e61c81822ac487adb78f45ce96c07c44339804..0000000000000000000000000000000000000000
--- a/chrome/browser/autofill/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 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 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 // CHROME_BROWSER_AUTOFILL_WALLET_CART_H_
« no previous file with comments | « chrome/browser/autofill/validation_unittest.cc ('k') | chrome/browser/autofill/wallet/cart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698