tor-browser

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

ClientHandleOpChild.h (1288B)


      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_ClientHandleOpChild_h
      7 #define _mozilla_dom_ClientHandleOpChild_h
      8 
      9 #include "mozilla/dom/ClientOpPromise.h"
     10 #include "mozilla/dom/PClientHandleOpChild.h"
     11 
     12 namespace mozilla::dom {
     13 
     14 class ClientHandle;
     15 
     16 class ClientHandleOpChild final : public PClientHandleOpChild {
     17  RefPtr<ClientHandle> mClientHandle;
     18  const ClientOpCallback mResolveCallback;
     19  const ClientOpCallback mRejectCallback;
     20 
     21  // PClientHandleOpChild interface
     22  void ActorDestroy(ActorDestroyReason aReason) override;
     23 
     24  mozilla::ipc::IPCResult Recv__delete__(
     25      const ClientOpResult& aResult) override;
     26 
     27 public:
     28  ClientHandleOpChild(ClientHandle* aClientHandle,
     29                      const ClientOpConstructorArgs& aArgs,
     30                      const ClientOpCallback&& aResolveCallback,
     31                      const ClientOpCallback&& aRejectCallback);
     32 
     33  ~ClientHandleOpChild() = default;
     34 };
     35 
     36 }  // namespace mozilla::dom
     37 
     38 #endif  // _mozilla_dom_ClientHandleOpChild_h