/src/mozilla-central/dom/clients/manager/ClientHandleOpParent.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_ClientHandleOpParent_h |
7 | | #define _mozilla_dom_ClientHandleOpParent_h |
8 | | |
9 | | #include "ClientOpPromise.h" |
10 | | #include "mozilla/dom/PClientHandleOpParent.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | | class ClientSourceParent; |
16 | | |
17 | | class ClientHandleOpParent final : public PClientHandleOpParent |
18 | | { |
19 | | MozPromiseRequestHolder<ClientOpPromise> mPromiseRequestHolder; |
20 | | |
21 | | ClientSourceParent* |
22 | | GetSource() const; |
23 | | |
24 | | // PClientHandleOpParent interface |
25 | | void |
26 | | ActorDestroy(ActorDestroyReason aReason) override; |
27 | | |
28 | | public: |
29 | 0 | ClientHandleOpParent() = default; |
30 | 0 | ~ClientHandleOpParent() = default; |
31 | | |
32 | | void |
33 | | Init(const ClientOpConstructorArgs& aArgs); |
34 | | }; |
35 | | |
36 | | } // namespace dom |
37 | | } // namespace mozilla |
38 | | |
39 | | #endif // _mozilla_dom_ClientHandleOpParent_h |