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/core/spdy_protocol.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 class SpdyBufferProducer; | 19 class SpdyBufferProducer; |
20 class SpdyStream; | 20 class SpdyStream; |
21 | 21 |
22 // A queue of SpdyBufferProducers to produce frames to write. Ordered | 22 // A queue of SpdyBufferProducers to produce frames to write. Ordered |
23 // by priority, and then FIFO. | 23 // by priority, and then FIFO. |
24 class NET_EXPORT_PRIVATE SpdyWriteQueue { | 24 class NET_EXPORT_PRIVATE SpdyWriteQueue { |
25 public: | 25 public: |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // The actual write queue, binned by priority. | 89 // The actual write queue, binned by priority. |
90 std::deque<PendingWrite> queue_[NUM_PRIORITIES]; | 90 std::deque<PendingWrite> queue_[NUM_PRIORITIES]; |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(SpdyWriteQueue); | 92 DISALLOW_COPY_AND_ASSIGN(SpdyWriteQueue); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace net | 95 } // namespace net |
96 | 96 |
97 #endif // NET_SPDY_SPDY_WRITE_QUEUE_H_ | 97 #endif // NET_SPDY_SPDY_WRITE_QUEUE_H_ |
OLD | NEW |