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

Side by Side Diff: content/public/browser/stored_payment_app.h

Issue 2969713002: [Payments] Present web payment app instead of instruments to user (Closed)
Patch Set: address 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 unified diff | Download patch
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/stored_payment_instrument.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_
6 #define CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_ 6 #define CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/browser/stored_payment_instrument.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 13 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "url/origin.h" 14 #include "url/origin.h"
16 15
17 namespace content { 16 namespace content {
18 17
19 // This class represents the stored payment app. 18 // This class represents the stored payment app.
20 struct CONTENT_EXPORT StoredPaymentApp { 19 struct CONTENT_EXPORT StoredPaymentApp {
21 StoredPaymentApp(); 20 StoredPaymentApp();
22 ~StoredPaymentApp(); 21 ~StoredPaymentApp();
23 22
24 // Id of the service worker registration this app is associated with. 23 // Id of the service worker registration this app is associated with.
25 int64_t registration_id = 0; 24 int64_t registration_id = 0;
26 25
27 // Origin of the payment app provider that provides this payment app. 26 // Origin of the payment app provider that provides this payment app.
28 url::Origin origin; 27 url::Origin origin;
29 28
30 // Label for this payment app. 29 // Label for this payment app.
31 std::string name; 30 std::string name;
32 31
33 // Decoded icon for this payment app. 32 // Decoded icon for this payment app.
34 std::unique_ptr<SkBitmap> icon; 33 std::unique_ptr<SkBitmap> icon;
35 34
36 // A list of one or more payment instruments in this payment app. 35 // A list of one or more enabled payment methods in this payment app.
37 std::vector<std::unique_ptr<StoredPaymentInstrument>> instruments; 36 std::vector<std::string> enabled_methods;
38 }; 37 };
39 38
40 } // namespace content 39 } // namespace content
41 40
42 #endif // CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_ 41 #endif // CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_
OLDNEW
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/stored_payment_instrument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698