OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_PAYMENT_APP_CONTEXT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PAYMENT_APP_CONTEXT_H_ |
| 7 |
| 8 #include <utility> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/callback_forward.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class PaymentAppContext { |
| 16 public: |
| 17 virtual ~PaymentAppContext() {} |
| 18 |
| 19 // The ManifestWithID is a pair of the service worker registration id and |
| 20 // the payment app manifest data associated with it. |
| 21 using ManifestWithID = |
| 22 std::pair<int64_t, payments::mojom::PaymentAppManifestPtr>; |
| 23 using Manifests = std::vector<ManifestWithID>; |
| 24 using GetAllManifestsCallback = base::Callback<void(Manifests)>; |
| 25 |
| 26 virtual void GetAllManifests(const GetAllManifestsCallback& callback) = 0; |
| 27 }; |
| 28 |
| 29 } // namespace content |
| 30 |
| 31 #endif // CONTENT_PUBLIC_BROWSER_PAYMENT_APP_CONTEXT_H_ |
OLD | NEW |