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

Unified Diff: content/public/browser/stored_payment_app.h

Issue 2958333002: [Payments] Implement web payment app manifest (Closed)
Patch Set: rename and comments Created 3 years, 5 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 | « content/public/browser/payment_app_provider.h ('k') | content/public/browser/stored_payment_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/stored_payment_app.h
diff --git a/content/public/browser/stored_payment_app.h b/content/public/browser/stored_payment_app.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b298c0d84c3020968c59416397606e4e5fb8f24
--- /dev/null
+++ b/content/public/browser/stored_payment_app.h
@@ -0,0 +1,42 @@
+// Copyright 2017 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 CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_
+#define CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_
+
+#include <stdint.h>
+#include <string>
+#include <vector>
+
+#include "content/common/content_export.h"
+#include "content/public/browser/stored_payment_instrument.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+#include "url/origin.h"
+
+namespace content {
+
+// This class represents the stored payment app.
+struct CONTENT_EXPORT StoredPaymentApp {
+ StoredPaymentApp();
+ ~StoredPaymentApp();
+
+ // Id of the service worker registration this app is associated with.
+ int64_t registration_id = 0;
+
+ // Origin of the payment app provider that provides this payment app.
+ url::Origin origin;
+
+ // Label for this payment app.
+ std::string name;
+
+ // Decoded icon for this payment app.
+ std::unique_ptr<SkBitmap> icon;
+
+ // A list of one or more payment instruments in this payment app.
+ std::vector<std::unique_ptr<StoredPaymentInstrument>> instruments;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_
« no previous file with comments | « content/public/browser/payment_app_provider.h ('k') | content/public/browser/stored_payment_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698