tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RemoteWorkerDebuggerManagerParent.h (1223B)


      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_RemoteWorkerDebuggerManagerParent_h
      6 #define mozilla_dom_RemoteWorkerDebuggerManagerParent_h
      7 
      8 #include "mozilla/dom/PRemoteWorkerDebuggerManagerParent.h"
      9 #include "mozilla/dom/PRemoteWorkerDebuggerParent.h"
     10 #include "mozilla/ipc/Endpoint.h"
     11 
     12 namespace mozilla::dom {
     13 
     14 class RemoteWorkerDebuggerManagerParent final
     15    : public PRemoteWorkerDebuggerManagerParent {
     16  friend class PRemoteWorkerDebuggerManagerParent;
     17 
     18 public:
     19  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(RemoteWorkerDebuggerManagerParent,
     20                                        final)
     21 
     22  static RefPtr<RemoteWorkerDebuggerManagerParent> CreateForProcess(
     23      mozilla::ipc::Endpoint<PRemoteWorkerDebuggerManagerChild>* aChildEp);
     24 
     25  RemoteWorkerDebuggerManagerParent();
     26 
     27  mozilla::ipc::IPCResult RecvRegister(
     28      const RemoteWorkerDebuggerInfo& aDebuggerInfo,
     29      mozilla::ipc::Endpoint<PRemoteWorkerDebuggerParent>&& aParentEp);
     30 
     31 private:
     32  ~RemoteWorkerDebuggerManagerParent();
     33 };
     34 
     35 }  // end of namespace mozilla::dom
     36 
     37 #endif