/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
private: virtual ~Http2PushedStream() = default; // paired request stream that consumes from real http/2 one.. null until a // match is made.
Http2StreamBase* mConsumerStream{nullptr};
nsCString mHashKey;
nsresult mStatus{NS_OK}; bool mPushCompleted{false}; // server push FIN received bool mDeferCleanupOnSuccess{true};
// mDeferCleanupOnPush prevents Http2Session::CleanupStream() from // destroying the push stream on an error code during the period between // when we need to do OnPush() on another thread and the time it takes // for that event to create a synthetic pull stream attached to this // object. That synthetic pull will become mConsuemerStream. // Ths is essentially a delete protecting reference. bool mDeferCleanupOnPush{false}; bool mOnPushFailed{false};
nsCString mRequestString;
nsCString mResourceUrl;
uint32_t mDefaultPriorityDependency;
// The underlying HTTP transaction. This pointer is used as the key // in the Http2Session mStreamTransactionHash so it is important to // keep a reference to it as long as this stream is a member of that hash. // (i.e. don't change it or release it after it is set in the ctor).
RefPtr<nsAHttpTransaction> const mTransaction;
};
class Http2PushTransactionBuffer final : public nsAHttpTransaction { public:
NS_DECL_ISUPPORTS
NS_DECL_NSAHTTPTRANSACTION
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.