Chromium Code Reviews| 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..0bb8789630e02bbf88e37a8823f44839fc21ef97 |
| --- /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/gurl.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. |
| + 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
|
| + |
| + // 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_ |