/src/mozilla-central/dom/clients/manager/ClientSourceOpChild.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | #ifndef _mozilla_dom_ClientSourceOpChild_h |
7 | | #define _mozilla_dom_ClientSourceOpChild_h |
8 | | |
9 | | #include "mozilla/dom/PClientSourceOpChild.h" |
10 | | #include "ClientOpPromise.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | | class ClientSource; |
16 | | |
17 | | class ClientSourceOpChild final : public PClientSourceOpChild |
18 | | { |
19 | | MozPromiseRequestHolder<ClientOpPromise> mPromiseRequestHolder; |
20 | | |
21 | | ClientSource* |
22 | | GetSource() const; |
23 | | |
24 | | template <typename Method, typename Args> |
25 | | void |
26 | | DoSourceOp(Method aMethod, const Args& aArgs); |
27 | | |
28 | | // PClientSourceOpChild interface |
29 | | void |
30 | | ActorDestroy(ActorDestroyReason aReason) override; |
31 | | |
32 | | public: |
33 | 0 | ClientSourceOpChild() = default; |
34 | 0 | ~ClientSourceOpChild() = default; |
35 | | |
36 | | void |
37 | | Init(const ClientOpConstructorArgs& aArgs); |
38 | | }; |
39 | | |
40 | | } // namespace dom |
41 | | } // namespace mozilla |
42 | | |
43 | | #endif // _mozilla_dom_ClientSourceOpChild_h |