summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_write_queue.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/spdy/spdy_write_queue.cc')
-rw-r--r--net/spdy/spdy_write_queue.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/spdy/spdy_write_queue.cc b/net/spdy/spdy_write_queue.cc
index c793aab..2ac4241 100644
--- a/net/spdy/spdy_write_queue.cc
+++ b/net/spdy/spdy_write_queue.cc
@@ -32,6 +32,14 @@ SpdyWriteQueue::~SpdyWriteQueue() {
Clear();
}
+bool SpdyWriteQueue::IsEmpty() const {
+ for (int i = 0; i < NUM_PRIORITIES; i++) {
+ if (!queue_[i].empty())
+ return false;
+ }
+ return true;
+}
+
void SpdyWriteQueue::Enqueue(RequestPriority priority,
SpdyFrameType frame_type,
scoped_ptr<SpdyBufferProducer> frame_producer,