Chromium Code Reviews| Index: content/public/browser/payment_app_context.h |
| diff --git a/content/public/browser/payment_app_context.h b/content/public/browser/payment_app_context.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4ec84a37e0d5a1e5f148a34eaea6acfac891ca0b |
| --- /dev/null |
| +++ b/content/public/browser/payment_app_context.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2016 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_PAYMENT_APP_CONTEXT_H_ |
| +#define CONTENT_PUBLIC_BROWSER_PAYMENT_APP_CONTEXT_H_ |
| + |
| +#include <utility> |
| +#include <vector> |
| + |
| +#include "base/callback_forward.h" |
| + |
| +namespace content { |
| + |
| +class PaymentAppContext { |
| + public: |
| + // The ManifestWithID is a pair of the service worker registration id and |
| + // the payment app manifest data associated with it. |
| + using ManifestWithID = |
| + std::pair<int64_t, payments::mojom::PaymentAppManifestPtr>; |
|
please use gerrit instead
2016/12/09 23:56:30
tommyt@'s implementation of PaymentAppManifest use
zino
2016/12/10 00:19:58
Sure,
As I remember, we already discussed about i
tommyt
2016/12/10 10:04:47
I'm fine with switching to int64_t, and I even hav
|
| + using Manifests = std::vector<ManifestWithID>; |
| + using GetAllManifestsCallback = base::Callback<void(const Manifests&)>; |
| + |
| + virtual void GetAllManifests(const GetAllManifestsCallback& callback) = 0; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_PAYMENT_APP_CONTEXT_H_ |