| 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 #include "net/spdy/http2_priority_dependencies.h" | 5 #include "net/spdy/chromium/http2_priority_dependencies.h" |
| 6 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 6 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
| 7 | 7 |
| 8 namespace net { | 8 namespace net { |
| 9 | 9 |
| 10 Http2PriorityDependencies::Http2PriorityDependencies() {} | 10 Http2PriorityDependencies::Http2PriorityDependencies() {} |
| 11 | 11 |
| 12 Http2PriorityDependencies::~Http2PriorityDependencies() {} | 12 Http2PriorityDependencies::~Http2PriorityDependencies() {} |
| 13 | 13 |
| 14 void Http2PriorityDependencies::OnStreamCreation( | 14 void Http2PriorityDependencies::OnStreamCreation( |
| 15 SpdyStreamId id, | 15 SpdyStreamId id, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 entry_by_stream_id_.erase(emit); | 158 entry_by_stream_id_.erase(emit); |
| 159 } | 159 } |
| 160 | 160 |
| 161 size_t Http2PriorityDependencies::EstimateMemoryUsage() const { | 161 size_t Http2PriorityDependencies::EstimateMemoryUsage() const { |
| 162 return SpdyEstimateMemoryUsage(id_priority_lists_); | 162 return SpdyEstimateMemoryUsage(id_priority_lists_); |
| 163 // TODO(xunjieli): https://crbug.com/690015. Include |entry_by_stream_id_| | 163 // TODO(xunjieli): https://crbug.com/690015. Include |entry_by_stream_id_| |
| 164 // when memory_usage_estimator.h supports std::list::iterator. | 164 // when memory_usage_estimator.h supports std::list::iterator. |
| 165 } | 165 } |
| 166 | 166 |
| 167 } // namespace net | 167 } // namespace net |
| OLD | NEW |