// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ #define NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ #include <list> #include <map> #include <utility> #include <vector> #include "net/base/net_export.h" #include "net/third_party/quiche/src/quiche/spdy/core/spdy_protocol.h" namespace net { // A helper class encapsulating the state and logic to set the priority fields // for HTTP/2 streams based on their spdy::SpdyPriority and the ordering of // creation and deletion of the streams. This implentation includes a gross hack // in which the HTTP/2 weight is set to a transformation of the // spdy::SpdyPriority value in order to support servers which do not honor // HTTP/2 stream dependencies and instead treat the weight value like a SPDY/3 // priority. // TODO(rch): Eliminate this gross hack when servers no longer act like this. class NET_EXPORT_PRIVATE Http2PriorityDependencies { … }; } // namespace net #endif // NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_