Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_APP_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 #include <string> | |
| 10 #include <vector> | |
| 11 | |
| 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" | |
| 15 #include "url/gurl.h" | |
| 16 | |
| 17 namespace content { | |
| 18 | |
| 19 // This class represents the stored payment app. | |
| 20 struct CONTENT_EXPORT StoredPaymentApp { | |
| 21 StoredPaymentApp(); | |
| 22 ~StoredPaymentApp(); | |
| 23 | |
| 24 // Id of the service worker registration this app is associated with. | |
| 25 int64_t registration_id = 0; | |
| 26 | |
| 27 // Origin of the payment app provider that provides this payment app. | |
| 28 GURL origin; | |
|
nasko
2017/06/30 17:32:47
Why not url::Origin? Using GURLs to represent orig
gogerald1
2017/06/30 18:18:51
Done. used url::Origin in this structure, we could
nasko
2017/06/30 21:02:33
It will be best to move over to url::Origin, so pl
| |
| 29 | |
| 30 // Label for this payment app. | |
| 31 std::string name; | |
| 32 | |
| 33 // Decoded icon for this payment app. | |
| 34 std::unique_ptr<SkBitmap> icon; | |
| 35 | |
| 36 // A list of one or more payment instruments in this payment app. | |
| 37 std::vector<std::unique_ptr<StoredPaymentInstrument>> instruments; | |
| 38 }; | |
| 39 | |
| 40 } // namespace content | |
| 41 | |
| 42 #endif // CONTENT_PUBLIC_BROWSER_STORED_PAYMENT_APP_H_ | |
| OLD | NEW |