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_ClientNavigateOpChild_h
7 #define _mozilla_dom_ClientNavigateOpChild_h
9 #include "mozilla/dom/PClientNavigateOpChild.h"
10 #include "ClientOpPromise.h"
12 namespace mozilla::dom
{
14 class ClientNavigateOpChild final
: public PClientNavigateOpChild
{
15 MozPromiseRequestHolder
<ClientOpPromise
> mPromiseRequestHolder
;
16 nsCOMPtr
<nsISerialEventTarget
> mSerialEventTarget
;
18 [[nodiscard
]] RefPtr
<ClientOpPromise
> DoNavigate(
19 const ClientNavigateOpConstructorArgs
& aArgs
);
21 // PClientNavigateOpChild interface
22 void ActorDestroy(ActorDestroyReason aReason
) override
;
25 ClientNavigateOpChild() = default;
26 ~ClientNavigateOpChild() = default;
28 void Init(const ClientNavigateOpConstructorArgs
& aArgs
);
31 } // namespace mozilla::dom
33 #endif // _mozilla_dom_ClientNavigateOpChild_h