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

Side by Side Diff: content/public/browser/stored_payment_instrument.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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_INSTRUMENT_H_
6 #define CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_INSTRUMENT_H_
7
8 #include <stdint.h>
9 #include <string>
10 #include <vector>
11
12 #include "content/common/content_export.h"
13 #include "third_party/skia/include/core/SkBitmap.h"
14 #include "url/gurl.h"
15
16 namespace content {
17
18 // This class represents the stored payment instrument in UA.
19 struct CONTENT_EXPORT StoredPaymentInstrument {
20 StoredPaymentInstrument();
21 ~StoredPaymentInstrument();
22
23 // Id of this payment instrument. This key will be passed to the payment
24 // handler to indicate the instrument selected by the user.
25 std::string instrument_key;
26
27 // Origin of the payment app provider that provides this payment instrument.
28 GURL origin;
29
30 // Label for this payment instrument.
31 std::string name;
32
33 // Decoded icon for this payment instrument.
34 std::unique_ptr<SkBitmap> icon;
35
36 // A list of one or more payment method identifiers of the payment methods
37 // supported by this payment instrument.
38 std::vector<std::string> enabled_methods;
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_INSTRUMENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/stored_payment_app.h ('k') | content/public/browser/stored_payment_instrument.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698