tor-browser

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

HttpConnectionMgrChild.h (2205B)


      1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 #ifndef HttpConnectionMgrChild_h__
      7 #define HttpConnectionMgrChild_h__
      8 
      9 #include "mozilla/net/PHttpConnectionMgrChild.h"
     10 #include "mozilla/RefPtr.h"
     11 
     12 namespace mozilla::net {
     13 
     14 class nsHttpConnectionMgr;
     15 
     16 class HttpConnectionMgrChild final : public PHttpConnectionMgrChild {
     17 public:
     18  NS_INLINE_DECL_REFCOUNTING(HttpConnectionMgrChild, override)
     19 
     20  explicit HttpConnectionMgrChild();
     21  void ActorDestroy(ActorDestroyReason aWhy) override;
     22 
     23  mozilla::ipc::IPCResult RecvDoShiftReloadConnectionCleanupWithConnInfo(
     24      const HttpConnectionInfoCloneArgs& aArgs);
     25  mozilla::ipc::IPCResult RecvUpdateCurrentBrowserId(const uint64_t& aId);
     26  mozilla::ipc::IPCResult RecvAddTransaction(PHttpTransactionChild* aTrans,
     27                                             const int32_t& aPriority);
     28  mozilla::ipc::IPCResult RecvAddTransactionWithStickyConn(
     29      PHttpTransactionChild* aTrans, const int32_t& aPriority,
     30      PHttpTransactionChild* aTransWithStickyConn);
     31  mozilla::ipc::IPCResult RecvRescheduleTransaction(
     32      PHttpTransactionChild* aTrans, const int32_t& aPriority);
     33  mozilla::ipc::IPCResult RecvUpdateClassOfServiceOnTransaction(
     34      PHttpTransactionChild* aTrans, const ClassOfService& aClassOfService);
     35  mozilla::ipc::IPCResult RecvCancelTransaction(PHttpTransactionChild* aTrans,
     36                                                const nsresult& aReason);
     37  mozilla::ipc::IPCResult RecvSpeculativeConnect(
     38      const HttpConnectionInfoCloneArgs& aConnInfo,
     39      Maybe<SpeculativeConnectionOverriderArgs> aOverriderArgs, uint32_t aCaps,
     40      Maybe<PAltSvcTransactionChild*> aTrans, const bool& aFetchHTTPSRR);
     41  mozilla::ipc::IPCResult RecvStartWebSocketConnection(
     42      PHttpTransactionChild* aTransWithStickyConn, uint32_t aListenerId);
     43 
     44 private:
     45  virtual ~HttpConnectionMgrChild();
     46 
     47  RefPtr<nsHttpConnectionMgr> mConnMgr;
     48 };
     49 
     50 }  // namespace mozilla::net
     51 
     52 #endif  // HttpConnectionMgrChild_h__