summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/wallet/cart.cc
diff options
context:
space:
mode:
authorahutter@chromium.org <ahutter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-20 02:46:28 +0000
committerahutter@chromium.org <ahutter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-20 02:46:28 +0000
commitce63d6b29059447b36aa2fc52ea608b1e785692e (patch)
treedb5a93bac2703504c6c8564c6ef58ec02abd8353 /chrome/browser/autofill/wallet/cart.cc
parent276c8b6cc32fe5e03ad779ff2c506a090b87cd4f (diff)
downloadchromium_src-ce63d6b29059447b36aa2fc52ea608b1e785692e.zip
chromium_src-ce63d6b29059447b36aa2fc52ea608b1e785692e.tar.gz
chromium_src-ce63d6b29059447b36aa2fc52ea608b1e785692e.tar.bz2
Integrating Online Wallet into Chrome. This CL is modeled after the Gaia OAuth client.
BUG=163609 Review URL: https://chromiumcodereview.appspot.com/11293078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/wallet/cart.cc')
-rw-r--r--chrome/browser/autofill/wallet/cart.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/browser/autofill/wallet/cart.cc b/chrome/browser/autofill/wallet/cart.cc
new file mode 100644
index 0000000..25db991
--- /dev/null
+++ b/chrome/browser/autofill/wallet/cart.cc
@@ -0,0 +1,24 @@
+// 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.
+
+#include "chrome/browser/autofill/wallet/cart.h"
+
+#include "base/values.h"
+
+namespace wallet {
+
+Cart::Cart(const std::string& total_price, const std::string& currency_code)
+ : total_price_(total_price), currency_code_(currency_code) {}
+
+Cart::~Cart() {}
+
+scoped_ptr<base::DictionaryValue> Cart::ToDictionary() const {
+ base::DictionaryValue* dict = new base::DictionaryValue();
+ dict->SetString("total_price", total_price_);
+ dict->SetString("currency_code", currency_code_);
+ return scoped_ptr<base::DictionaryValue>(dict);
+}
+
+} // namespace wallet
+