RemoteWorkerDebuggerChild.h (1195B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef mozilla_dom_RemoteWorkerDebuggerChild_h 6 #define mozilla_dom_RemoteWorkerDebuggerChild_h 7 8 #include "mozilla/dom/PRemoteWorkerDebuggerChild.h" 9 10 using mozilla::ipc::IPCResult; 11 12 namespace mozilla::dom { 13 14 class WorkerPrivate; 15 16 class RemoteWorkerDebuggerChild final : public PRemoteWorkerDebuggerChild { 17 friend class PRemoteWorkerDebuggerChild; 18 friend class WorkerPrivate; 19 20 public: 21 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(RemoteWorkerDebuggerChild, final) 22 23 explicit RemoteWorkerDebuggerChild(WorkerPrivate* aWorkerPrivate); 24 25 mozilla::ipc::IPCResult RecvRegisterDone(); 26 mozilla::ipc::IPCResult RecvUnregisterDone(); 27 28 mozilla::ipc::IPCResult RecvInitialize(const nsString& aURL); 29 mozilla::ipc::IPCResult RecvPostMessage(const nsString& aMessage); 30 mozilla::ipc::IPCResult RecvSetDebuggerReady(const bool& aReady); 31 32 private: 33 ~RemoteWorkerDebuggerChild(); 34 35 bool mIsInitialized{false}; 36 }; 37 38 } // namespace mozilla::dom 39 40 #endif // mozilla_dom_RemoteWorkerDebuggerChild_h