Bug 1814798 - pt 2. Add a PHCManager component to control PHC r=glandium,emilio
[gecko.git] / netwerk / protocol / http / AltSvcTransactionChild.h
blobeb3b4aa5806218f02100f7dec2f6bd7217f0ff3a
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 AltSvcTransactionChild_h__
7 #define AltSvcTransactionChild_h__
9 #include "mozilla/net/PAltSvcTransactionChild.h"
11 namespace mozilla {
12 namespace net {
14 class nsHttpConnectionInfo;
15 class SpeculativeTransaction;
17 class AltSvcTransactionChild final : public PAltSvcTransactionChild {
18 public:
19 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(AltSvcTransactionChild, override)
21 explicit AltSvcTransactionChild(nsHttpConnectionInfo* aConnInfo,
22 uint32_t aCaps);
24 void OnTransactionDestroy(bool aValidateResult);
25 void OnTransactionClose(bool aValidateResult);
27 already_AddRefed<SpeculativeTransaction> CreateTransaction();
29 private:
30 virtual ~AltSvcTransactionChild();
32 RefPtr<nsHttpConnectionInfo> mConnInfo;
33 uint32_t mCaps;
36 } // namespace net
37 } // namespace mozilla
39 #endif // AltSvcTransactionChild_h__