no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / dom / clients / manager / ClientHandleOpParent.h
blobf8e7cfb89fa45cc831edd8f8a6a317301a9b31c4
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
9 #include "ClientOpPromise.h"
10 #include "mozilla/dom/PClientHandleOpParent.h"
11 #include "ClientHandleParent.h"
13 namespace mozilla::dom {
15 class ClientSourceParent;
17 class ClientHandleOpParent final : public PClientHandleOpParent {
18 MozPromiseRequestHolder<ClientOpPromise> mPromiseRequestHolder;
19 MozPromiseRequestHolder<SourcePromise> mSourcePromiseRequestHolder;
21 ClientSourceParent* GetSource() const;
23 // PClientHandleOpParent interface
24 void ActorDestroy(ActorDestroyReason aReason) override;
26 public:
27 ClientHandleOpParent() = default;
28 ~ClientHandleOpParent() = default;
30 void Init(ClientOpConstructorArgs&& aArgs);
33 } // namespace mozilla::dom
35 #endif // _mozilla_dom_ClientHandleOpParent_h