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

Unified Diff: net/spdy/spdy_stream.h

Issue 13009012: [SPDY] Refactor SpdySession's write queue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_stream.h
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h
index 3ad34f93c3f589e46fefaa999b4bc191609e4f26..cd0188b3b39039c70289dffb29e6489697fe0ed0 100644
--- a/net/spdy/spdy_stream.h
+++ b/net/spdy/spdy_stream.h
@@ -5,7 +5,7 @@
#ifndef NET_SPDY_SPDY_STREAM_H_
#define NET_SPDY_SPDY_STREAM_H_
-#include <list>
+#include <deque>
#include <string>
#include <vector>
@@ -299,7 +299,7 @@ class NET_EXPORT_PRIVATE SpdyStream
int GetProtocolVersion() const;
private:
- class SpdyStreamIOBufferProducer;
+ class SpdyStreamFrameProducer;
enum State {
STATE_NONE,
@@ -401,11 +401,11 @@ class NET_EXPORT_PRIVATE SpdyStream
// An in order list of pending frame data that are going to be sent. HEADERS
// frames are queued as SpdyHeaderBlock structures because these must be
// compressed just before sending. Data frames are queued as SpdyDataFrame.
- std::list<PendingFrame> pending_frames_;
+ std::deque<PendingFrame> pending_frames_;
// An in order list of sending frame types. It will be used to know which type
// of frame is sent and which callback should be invoked in OnOpen().
- std::list<FrameType> waiting_completions_;
+ std::deque<FrameType> waiting_completions_;
State io_state_;

Powered by Google App Engine
This is Rietveld 408576698