OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ | 5 #ifndef NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ |
6 #define NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ | 6 #define NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/spdy/spdy_protocol.h" | 12 #include "net/spdy/core/spdy_protocol.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 // A helper class encapsulating the state and logic to set dependencies of | 16 // A helper class encapsulating the state and logic to set dependencies of |
17 // HTTP2 streams based on their SpdyPriority and the ordering | 17 // HTTP2 streams based on their SpdyPriority and the ordering |
18 // of creation and deletion of the streams. | 18 // of creation and deletion of the streams. |
19 class NET_EXPORT_PRIVATE Http2PriorityDependencies { | 19 class NET_EXPORT_PRIVATE Http2PriorityDependencies { |
20 public: | 20 public: |
21 Http2PriorityDependencies(); | 21 Http2PriorityDependencies(); |
22 ~Http2PriorityDependencies(); | 22 ~Http2PriorityDependencies(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 // Finds the stream just below |id| in the total order. | 82 // Finds the stream just below |id| in the total order. |
83 // Returns false if there are no streams with a lower priority. | 83 // Returns false if there are no streams with a lower priority. |
84 // Otherwise, returns true and sets |*child|. | 84 // Otherwise, returns true and sets |*child|. |
85 bool ChildOfStream(SpdyStreamId id, IdList::iterator* child); | 85 bool ChildOfStream(SpdyStreamId id, IdList::iterator* child); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace net | 88 } // namespace net |
89 | 89 |
90 #endif // NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ | 90 #endif // NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ |
OLD | NEW |