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"
14 class nsHttpConnectionInfo
;
15 class SpeculativeTransaction
;
17 class AltSvcTransactionChild final
: public PAltSvcTransactionChild
{
19 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(AltSvcTransactionChild
, override
)
21 explicit AltSvcTransactionChild(nsHttpConnectionInfo
* aConnInfo
,
24 void OnTransactionDestroy(bool aValidateResult
);
25 void OnTransactionClose(bool aValidateResult
);
27 already_AddRefed
<SpeculativeTransaction
> CreateTransaction();
30 virtual ~AltSvcTransactionChild();
32 RefPtr
<nsHttpConnectionInfo
> mConnInfo
;
37 } // namespace mozilla
39 #endif // AltSvcTransactionChild_h__