Chromium Code Reviews| 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 // The ManifestWithID is a pair of the service worker registration id and | |
| 18 // the payment app manifest data associated with it. | |
| 19 using ManifestWithID = | |
| 20 std::pair<int64_t, payments::mojom::PaymentAppManifestPtr>; | |
| 21 using Manifests = std::vector<ManifestWithID>; | |
| 22 using GetAllManifestsCallback = base::Callback<void(Manifests)>; | |
| 23 | |
| 24 virtual void GetAllManifests(const GetAllManifestsCallback& callback) = 0; | |
| 25 }; | |
|
please use gerrit instead
2016/12/14 16:50:06
Need a destructor:
"An interface class can never
zino
2016/12/14 17:20:19
Done.
| |
| 26 | |
| 27 } // namespace content | |
| 28 | |
| 29 #endif // CONTENT_PUBLIC_BROWSER_PAYMENT_APP_CONTEXT_H_ | |
| OLD | NEW |