tor-browser

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

EarlyHintPreconnect.h (773B)


      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_net_EarlyHintPreconnect_h
      6 #define mozilla_net_EarlyHintPreconnect_h
      7 
      8 #include "nsNetUtil.h"
      9 
     10 namespace mozilla::net {
     11 
     12 class EarlyHintPreconnect final {
     13 public:
     14  static void MaybePreconnect(const LinkHeader& aHeader, nsIURI* aBaseURI,
     15                              OriginAttributes&& aOriginAttributes);
     16 
     17  EarlyHintPreconnect() = delete;
     18  EarlyHintPreconnect(const EarlyHintPreconnect&) = delete;
     19  EarlyHintPreconnect& operator=(const EarlyHintPreconnect&) = delete;
     20 };
     21 
     22 }  // namespace mozilla::net
     23 
     24 #endif  // mozilla_net_EarlyHintPreconnect_h