Bug 1814798 - pt 2. Add a PHCManager component to control PHC r=glandium,emilio
[gecko.git] / netwerk / protocol / http / AltServiceChild.h
blobcc70a0e048a07d0d6060541b88e767d496df4586
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/. */
6 #ifndef AltServiceChild_h__
7 #define AltServiceChild_h__
9 #include "mozilla/net/PAltServiceChild.h"
11 class nsIInterfaceRequestor;
13 namespace mozilla {
14 namespace net {
16 class nsHttpConnectionInfo;
17 class nsProxyInfo;
19 class AltServiceChild final : public PAltServiceChild {
20 public:
21 NS_INLINE_DECL_REFCOUNTING(AltServiceChild, override)
23 static bool EnsureAltServiceChild();
24 static void ClearHostMapping(nsHttpConnectionInfo* aCi);
25 static void ProcessHeader(const nsCString& aBuf,
26 const nsCString& aOriginScheme,
27 const nsCString& aOriginHost, int32_t aOriginPort,
28 const nsCString& aUsername, bool aPrivateBrowsing,
29 nsIInterfaceRequestor* aCallbacks,
30 nsProxyInfo* aProxyInfo, uint32_t aCaps,
31 const OriginAttributes& aOriginAttributes);
33 private:
34 AltServiceChild();
35 virtual ~AltServiceChild();
38 } // namespace net
39 } // namespace mozilla
41 #endif // AltServiceChild_h__