tor-browser

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

RemoteWorkerServiceChild.h (1542B)


      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 
      7 #ifndef mozilla_dom_RemoteWorkerServiceChild_h
      8 #define mozilla_dom_RemoteWorkerServiceChild_h
      9 
     10 #include "mozilla/dom/PRemoteWorkerNonLifeCycleOpControllerChild.h"
     11 #include "mozilla/dom/PRemoteWorkerServiceChild.h"
     12 #include "nsISupportsImpl.h"
     13 
     14 namespace mozilla::dom {
     15 
     16 class RemoteWorkerController;
     17 class RemoteWorkerData;
     18 
     19 /**
     20 * "Worker Launcher"-thread child actor created by the RemoteWorkerService to
     21 * receive messages from the PBackground RemoteWorkerManager in the parent.
     22 */
     23 class RemoteWorkerServiceChild final : public PRemoteWorkerServiceChild {
     24 public:
     25  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(RemoteWorkerServiceChild, final)
     26 
     27  RemoteWorkerServiceChild();
     28 
     29  already_AddRefed<PRemoteWorkerChild> AllocPRemoteWorkerChild(
     30      const RemoteWorkerData& aData,
     31      mozilla::ipc::Endpoint<PRemoteWorkerNonLifeCycleOpControllerChild>&
     32          aChildEp);
     33 
     34  mozilla::ipc::IPCResult RecvPRemoteWorkerConstructor(
     35      PRemoteWorkerChild* aActor, const RemoteWorkerData& aData,
     36      mozilla::ipc::Endpoint<PRemoteWorkerNonLifeCycleOpControllerChild>&&
     37          aChildEp);
     38 
     39 private:
     40  ~RemoteWorkerServiceChild();
     41 };
     42 
     43 }  // namespace mozilla::dom
     44 
     45 #endif  // mozilla_dom_RemoteWorkerServiceChild_h