| Index: net/spdy/spdy_stream.h
|
| diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h
|
| index 3e81ecf1ff4dbb0c205be10efb92dfe6e95210e7..964b6d1ead6af0ff97b4f39599dc42aa797aae7e 100644
|
| --- a/net/spdy/spdy_stream.h
|
| +++ b/net/spdy/spdy_stream.h
|
| @@ -6,6 +6,7 @@
|
| #define NET_SPDY_SPDY_STREAM_H_
|
| #pragma once
|
|
|
| +#include <list>
|
| #include <string>
|
| #include <vector>
|
|
|
| @@ -24,6 +25,7 @@
|
| #include "net/socket/ssl_client_socket.h"
|
| #include "net/spdy/spdy_framer.h"
|
| #include "net/spdy/spdy_protocol.h"
|
| +#include "net/spdy/spdy_frame_producer.h"
|
|
|
| namespace net {
|
|
|
| @@ -42,6 +44,7 @@ class SSLInfo;
|
| // until such a time as a client object requests a stream for the path.
|
| class NET_EXPORT_PRIVATE SpdyStream
|
| : public base::RefCounted<SpdyStream>,
|
| + public SpdyFrameProducer,
|
| public ChunkCallback {
|
| public:
|
| // Delegate handles protocol specific behavior of spdy stream.
|
| @@ -95,10 +98,14 @@ class NET_EXPORT_PRIVATE SpdyStream
|
|
|
| // SpdyStream constructor
|
| SpdyStream(SpdySession* session,
|
| - SpdyStreamId stream_id,
|
| bool pushed,
|
| const BoundNetLog& net_log);
|
|
|
| + // SpdyFrameProducer
|
| + virtual RequestPriority GetPriority() const OVERRIDE;
|
| + virtual SpdyFrame* ProduceNextFrame() OVERRIDE;
|
| + virtual SpdyStream* GetSpdyStream() const OVERRIDE;
|
| +
|
| // Set new |delegate|. |delegate| must not be NULL.
|
| // If it already received SYN_REPLY or data, OnResponseReceived() or
|
| // OnDataReceived() will be called.
|
| @@ -343,6 +350,8 @@ class NET_EXPORT_PRIVATE SpdyStream
|
| linked_ptr<SpdyHeaderBlock> response_;
|
| base::Time response_time_;
|
|
|
| + std::list<SpdyFrame*> pending_data_frames_;
|
| +
|
| State io_state_;
|
|
|
| // Since we buffer the response, we also buffer the response status.
|
|
|