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