| 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 #ifndef NET_SPDY_SPDY_WRITE_QUEUE_H_ | 5 #ifndef NET_SPDY_SPDY_WRITE_QUEUE_H_ |
| 6 #define NET_SPDY_SPDY_WRITE_QUEUE_H_ | 6 #define NET_SPDY_SPDY_WRITE_QUEUE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 14 #include "net/base/request_priority.h" | 14 #include "net/base/request_priority.h" |
| 15 #include "net/spdy/spdy_protocol.h" | 15 #include "net/spdy/spdy_protocol.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 class SpdyBuffer; | |
| 20 class SpdyBufferProducer; | 19 class SpdyBufferProducer; |
| 21 class SpdyStream; | 20 class SpdyStream; |
| 22 | 21 |
| 23 // A queue of SpdyBufferProducers to produce frames to write. Ordered | 22 // A queue of SpdyBufferProducers to produce frames to write. Ordered |
| 24 // by priority, and then FIFO. | 23 // by priority, and then FIFO. |
| 25 class NET_EXPORT_PRIVATE SpdyWriteQueue { | 24 class NET_EXPORT_PRIVATE SpdyWriteQueue { |
| 26 public: | 25 public: |
| 27 SpdyWriteQueue(); | 26 SpdyWriteQueue(); |
| 28 ~SpdyWriteQueue(); | 27 ~SpdyWriteQueue(); |
| 29 | 28 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 83 |
| 85 // The actual write queue, binned by priority. | 84 // The actual write queue, binned by priority. |
| 86 std::deque<PendingWrite> queue_[NUM_PRIORITIES]; | 85 std::deque<PendingWrite> queue_[NUM_PRIORITIES]; |
| 87 | 86 |
| 88 DISALLOW_COPY_AND_ASSIGN(SpdyWriteQueue); | 87 DISALLOW_COPY_AND_ASSIGN(SpdyWriteQueue); |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 } // namespace net | 90 } // namespace net |
| 92 | 91 |
| 93 #endif // NET_SPDY_SPDY_WRITE_QUEUE_H_ | 92 #endif // NET_SPDY_SPDY_WRITE_QUEUE_H_ |
| OLD | NEW |