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

Unified 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: Changes from Dane's review Created 8 years, 1 month 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
Index: chrome/browser/autofill/wallet/cart.h
diff --git a/chrome/browser/autofill/wallet/cart.h b/chrome/browser/autofill/wallet/cart.h
new file mode 100644
index 0000000000000000000000000000000000000000..ad32f1800dd93cb4861cd1ab67efb1149b467e73
--- /dev/null
+++ b/chrome/browser/autofill/wallet/cart.h
@@ -0,0 +1,35 @@
+// 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 wallet {
+
+class Cart {
+ public:
+ Cart(const std::string& total_price, const std::string& currency_code);
+ ~Cart();
+ const std::string get_total_price() const { return total_price_; }
+ const std::string get_currency_code() const { return currency_code_; }
+ scoped_ptr<base::DictionaryValue> ToDictionary() const;
+
+ private:
+ std::string total_price_;
+ std::string currency_code_;
+ DISALLOW_COPY_AND_ASSIGN(Cart);
+};
+
+} // end wallet namespace
+
+#endif // CHROME_BROWSER_AUTOFILL_WALLET_CART_H_

Powered by Google App Engine
This is Rietveld 408576698