ClientSourceOpParent.h (1166B)
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_ClientSourceOpParent_h 7 #define _mozilla_dom_ClientSourceOpParent_h 8 9 #include "mozilla/dom/ClientOpPromise.h" 10 #include "mozilla/dom/PClientSourceOpParent.h" 11 12 namespace mozilla::dom { 13 14 class ClientSourceOpParent final : public PClientSourceOpParent { 15 const ClientOpConstructorArgs mArgs; 16 RefPtr<ClientOpPromise::Private> mPromise; 17 18 // PClientSourceOpParent interface 19 void ActorDestroy(ActorDestroyReason aReason) override; 20 21 mozilla::ipc::IPCResult Recv__delete__( 22 const ClientOpResult& aResult) override; 23 24 public: 25 ClientSourceOpParent(ClientOpConstructorArgs&& aArgs, 26 ClientOpPromise::Private* aPromise); 27 28 const ClientOpConstructorArgs& Args() const { return mArgs; } 29 30 ~ClientSourceOpParent(); 31 }; 32 33 } // namespace mozilla::dom 34 35 #endif // _mozilla_dom_ClientSourceOpParent_h