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_ClientManagerParent_h
7 #define _mozilla_dom_ClientManagerParent_h
9 #include "mozilla/dom/PClientManagerParent.h"
11 namespace mozilla::dom
{
13 class ClientManagerService
;
15 class ClientManagerParent final
: public PClientManagerParent
{
16 RefPtr
<ClientManagerService
> mService
;
18 // PClientManagerParent interface
19 mozilla::ipc::IPCResult
RecvTeardown() override
;
21 void ActorDestroy(ActorDestroyReason aReason
) override
;
23 PClientHandleParent
* AllocPClientHandleParent(
24 const IPCClientInfo
& aClientInfo
) override
;
26 bool DeallocPClientHandleParent(PClientHandleParent
* aActor
) override
;
28 mozilla::ipc::IPCResult
RecvPClientHandleConstructor(
29 PClientHandleParent
* aActor
, const IPCClientInfo
& aClientInfo
) override
;
31 PClientManagerOpParent
* AllocPClientManagerOpParent(
32 const ClientOpConstructorArgs
& aArgs
) override
;
34 bool DeallocPClientManagerOpParent(PClientManagerOpParent
* aActor
) override
;
36 mozilla::ipc::IPCResult
RecvPClientManagerOpConstructor(
37 PClientManagerOpParent
* aActor
,
38 const ClientOpConstructorArgs
& aArgs
) override
;
40 PClientNavigateOpParent
* AllocPClientNavigateOpParent(
41 const ClientNavigateOpConstructorArgs
& aArgs
) override
;
43 bool DeallocPClientNavigateOpParent(PClientNavigateOpParent
* aActor
) override
;
45 PClientSourceParent
* AllocPClientSourceParent(
46 const ClientSourceConstructorArgs
& aArgs
) override
;
48 bool DeallocPClientSourceParent(PClientSourceParent
* aActor
) override
;
50 mozilla::ipc::IPCResult
RecvPClientSourceConstructor(
51 PClientSourceParent
* aActor
,
52 const ClientSourceConstructorArgs
& aArgs
) override
;
54 mozilla::ipc::IPCResult
RecvExpectFutureClientSource(
55 const IPCClientInfo
& aClientInfo
) override
;
57 mozilla::ipc::IPCResult
RecvForgetFutureClientSource(
58 const IPCClientInfo
& aClientInfo
) override
;
61 ClientManagerParent();
62 ~ClientManagerParent();
67 } // namespace mozilla::dom
69 #endif // _mozilla_dom_ClientManagerParent_h