AltSvcTransactionChild.h (1137B)
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 AltSvcTransactionChild_h__ 7 #define AltSvcTransactionChild_h__ 8 9 #include "mozilla/net/PAltSvcTransactionChild.h" 10 11 namespace mozilla { 12 namespace net { 13 14 class nsHttpConnectionInfo; 15 class SpeculativeTransaction; 16 17 class AltSvcTransactionChild final : public PAltSvcTransactionChild { 18 public: 19 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(AltSvcTransactionChild, override) 20 21 explicit AltSvcTransactionChild(nsHttpConnectionInfo* aConnInfo, 22 uint32_t aCaps); 23 24 void OnTransactionDestroy(bool aValidateResult); 25 void OnTransactionClose(bool aValidateResult); 26 27 already_AddRefed<SpeculativeTransaction> CreateTransaction(); 28 29 private: 30 virtual ~AltSvcTransactionChild(); 31 32 RefPtr<nsHttpConnectionInfo> mConnInfo; 33 uint32_t mCaps; 34 }; 35 36 } // namespace net 37 } // namespace mozilla 38 39 #endif // AltSvcTransactionChild_h__