Index: chrome/browser/autofill/wallet/cart.cc |
diff --git a/chrome/browser/autofill/wallet/cart.cc b/chrome/browser/autofill/wallet/cart.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..40d43051d4c970b5abdd58d41ef179489b131ec9 |
--- /dev/null |
+++ b/chrome/browser/autofill/wallet/cart.cc |
@@ -0,0 +1,23 @@ |
+// 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); |
+} |
+ |
+} // end wallet namespace |