| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/spdy_write_queue.h" | 5 #include "net/spdy/chromium/spdy_write_queue.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "net/spdy/chromium/spdy_buffer.h" |
| 13 #include "net/spdy/chromium/spdy_buffer_producer.h" |
| 14 #include "net/spdy/chromium/spdy_stream.h" |
| 12 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 15 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
| 13 #include "net/spdy/spdy_buffer.h" | |
| 14 #include "net/spdy/spdy_buffer_producer.h" | |
| 15 #include "net/spdy/spdy_stream.h" | |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 SpdyWriteQueue::PendingWrite::PendingWrite() {} | 19 SpdyWriteQueue::PendingWrite::PendingWrite() {} |
| 20 | 20 |
| 21 SpdyWriteQueue::PendingWrite::PendingWrite( | 21 SpdyWriteQueue::PendingWrite::PendingWrite( |
| 22 SpdyFrameType frame_type, | 22 SpdyFrameType frame_type, |
| 23 std::unique_ptr<SpdyBufferProducer> frame_producer, | 23 std::unique_ptr<SpdyBufferProducer> frame_producer, |
| 24 const base::WeakPtr<SpdyStream>& stream) | 24 const base::WeakPtr<SpdyStream>& stream) |
| 25 : frame_type(frame_type), | 25 : frame_type(frame_type), |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 queue_[i].clear(); | 158 queue_[i].clear(); |
| 159 } | 159 } |
| 160 removing_writes_ = false; | 160 removing_writes_ = false; |
| 161 } | 161 } |
| 162 | 162 |
| 163 size_t SpdyWriteQueue::EstimateMemoryUsage() const { | 163 size_t SpdyWriteQueue::EstimateMemoryUsage() const { |
| 164 return SpdyEstimateMemoryUsage(queue_); | 164 return SpdyEstimateMemoryUsage(queue_); |
| 165 } | 165 } |
| 166 | 166 |
| 167 } // namespace net | 167 } // namespace net |
| OLD | NEW |