Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: net/spdy/spdy_write_queue.h

Issue 265093004: SPDY: Add a bunch of CHECKs into SpdyWriteQueue to detect re-entrancy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more removing_writes_. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/spdy/spdy_write_queue.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_write_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698