| 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 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Whether |stream| was non-NULL when enqueued. | 71 // Whether |stream| was non-NULL when enqueued. |
| 72 bool has_stream; | 72 bool has_stream; |
| 73 | 73 |
| 74 PendingWrite(); | 74 PendingWrite(); |
| 75 PendingWrite(SpdyFrameType frame_type, | 75 PendingWrite(SpdyFrameType frame_type, |
| 76 SpdyBufferProducer* frame_producer, | 76 SpdyBufferProducer* frame_producer, |
| 77 const base::WeakPtr<SpdyStream>& stream); | 77 const base::WeakPtr<SpdyStream>& stream); |
| 78 ~PendingWrite(); | 78 ~PendingWrite(); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 bool removing_writes_; |
| 82 |
| 81 // The actual write queue, binned by priority. | 83 // The actual write queue, binned by priority. |
| 82 std::deque<PendingWrite> queue_[NUM_PRIORITIES]; | 84 std::deque<PendingWrite> queue_[NUM_PRIORITIES]; |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(SpdyWriteQueue); | 86 DISALLOW_COPY_AND_ASSIGN(SpdyWriteQueue); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace net | 89 } // namespace net |
| 88 | 90 |
| 89 #endif // NET_SPDY_SPDY_WRITE_QUEUE_H_ | 91 #endif // NET_SPDY_SPDY_WRITE_QUEUE_H_ |
| OLD | NEW |