| 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_HTTP2_PRIORITY_DEPENDENCIES_H_ | 5 #ifndef NET_HTTP2_PRIORITY_DEPENDENCIES_H_ |
| 6 #define NET_HTTP2_PRIORITY_DEPENDENCIES_H_ | 6 #define NET_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/spdy/spdy_protocol.h" | 12 #include "net/spdy/spdy_protocol.h" |
| 12 | 13 |
| 13 namespace net { | 14 namespace net { |
| 14 | 15 |
| 15 // 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 |
| 16 // HTTP2 streams based on their SpdyPriority and the ordering | 17 // HTTP2 streams based on their SpdyPriority and the ordering |
| 17 // of creation and deletion of the streams. | 18 // of creation and deletion of the streams. |
| 18 class NET_EXPORT_PRIVATE Http2PriorityDependencies { | 19 class NET_EXPORT_PRIVATE Http2PriorityDependencies { |
| 19 public: | 20 public: |
| 20 Http2PriorityDependencies(); | 21 Http2PriorityDependencies(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 | 52 |
| 52 // Tracks the location of an id anywhere in the above vector of lists. | 53 // Tracks the location of an id anywhere in the above vector of lists. |
| 53 // Iterators to list elements remain valid until those particular elements | 54 // Iterators to list elements remain valid until those particular elements |
| 54 // are erased. | 55 // are erased. |
| 55 EntryMap entry_by_stream_id_; | 56 EntryMap entry_by_stream_id_; |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace net | 59 } // namespace net |
| 59 | 60 |
| 60 #endif // NET_HTTP2_PRIORITY_DEPENDENCIES_H_ | 61 #endif // NET_HTTP2_PRIORITY_DEPENDENCIES_H_ |
| OLD | NEW |