summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_session.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-17 10:16:33 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-17 10:16:33 +0000
commitba3443695a61a148ed76c8701f0def16919f904c (patch)
tree1f48590dc5d970963558d1e6f9435d39242e2044 /net/spdy/spdy_session.h
parent9dc5e0f60d009bd665aaac4f0ccbc02af6fffa25 (diff)
downloadchromium_src-ba3443695a61a148ed76c8701f0def16919f904c.zip
chromium_src-ba3443695a61a148ed76c8701f0def16919f904c.tar.gz
chromium_src-ba3443695a61a148ed76c8701f0def16919f904c.tar.bz2
Revert 194560 "[SPDY] Replace SpdyIOBuffer with new SpdyBuffer c..."
> [SPDY] Replace SpdyIOBuffer with new SpdyBuffer class > > Use SpdyBuffer for both SPDY reads and writes. A future > CL will add hooks to SpdyBuffer so that we keep track of > flow control windows properly. > > Replace SpdyFrameProducer with SpdyBufferProducer. > > Also introduce new SpdyReadQueue class for delegates > of SpdyStream to use. > > BUG=176592 > > Review URL: https://codereview.chromium.org/13990005 TBR=akalin@chromium.org Review URL: https://codereview.chromium.org/13996009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session.h')
-rw-r--r--net/spdy/spdy_session.h32
1 files changed, 12 insertions, 20 deletions
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
index 55ac9f9..b4e7335 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -26,9 +26,9 @@
#include "net/socket/ssl_client_socket.h"
#include "net/socket/stream_socket.h"
#include "net/spdy/buffered_spdy_framer.h"
-#include "net/spdy/spdy_buffer.h"
#include "net/spdy/spdy_credential_state.h"
#include "net/spdy/spdy_header_block.h"
+#include "net/spdy/spdy_io_buffer.h"
#include "net/spdy/spdy_protocol.h"
#include "net/spdy/spdy_session_pool.h"
#include "net/spdy/spdy_write_queue.h"
@@ -246,7 +246,7 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
// producer is used to produce its frame.
void EnqueueStreamWrite(SpdyStream* stream,
SpdyFrameType frame_type,
- scoped_ptr<SpdyBufferProducer> producer);
+ scoped_ptr<SpdyFrameProducer> producer);
// Creates and returns a SYN frame for |stream_id|.
scoped_ptr<SpdyFrame> CreateSynStream(
@@ -271,12 +271,12 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
const SpdyHeaderBlock& headers,
SpdyControlFlags flags);
- // Creates and returns a SpdyBuffer holding a data frame with the
- // given data. May return NULL if stalled by flow control.
- scoped_ptr<SpdyBuffer> CreateDataBuffer(SpdyStreamId stream_id,
- net::IOBuffer* data,
- int len,
- SpdyDataFlags flags);
+ // Creates and returns a data frame. May return NULL if stalled by
+ // flow control.
+ scoped_ptr<SpdyFrame> CreateDataFrame(SpdyStreamId stream_id,
+ net::IOBuffer* data,
+ int len,
+ SpdyDataFlags flags);
// Close a stream.
void CloseStream(SpdyStreamId stream_id, int status);
@@ -584,7 +584,7 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
// with the given priority.
void EnqueueWrite(RequestPriority priority,
SpdyFrameType frame_type,
- scoped_ptr<SpdyBufferProducer> producer,
+ scoped_ptr<SpdyFrameProducer> producer,
const scoped_refptr<SpdyStream>& stream);
// Track active streams in the active stream list.
@@ -771,18 +771,10 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
// The write queue.
SpdyWriteQueue write_queue_;
- // Data for the frame we are currently sending.
- // Whether we have a socket write pending completion.
- bool write_pending_;
- // The buffer we're currently writing.
- scoped_ptr<SpdyBuffer> in_flight_write_;
- // The type of the frame in |in_flight_write_|.
+ // The packet we are currently sending.
+ bool write_pending_; // Will be true when a write is in progress.
+ SpdyIOBuffer in_flight_write_; // This is the write buffer in progress.
SpdyFrameType in_flight_write_frame_type_;
- // The size of the frame in |in_flight_write_|.
- size_t in_flight_write_frame_size_;
- // The stream to notify when |in_flight_write_| has been written to
- // the socket completely.
- scoped_refptr<SpdyStream> in_flight_write_stream_;
// Flag if we have a pending message scheduled for WriteSocket.
bool delayed_write_pending_;