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

Unified Diff: net/spdy/spdy_http_stream.h

Issue 2919011: Implement MAX_CONCURRENT_STREAMS SETTINGS header (Closed)
Patch Set: landing soon on a repo near you Created 10 years, 5 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
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_http_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_http_stream.h
diff --git a/net/spdy/spdy_http_stream.h b/net/spdy/spdy_http_stream.h
index 495cac9eef095308824673b4c1b7823ecc60a2e9..a16c3cae55f956c11f5a8dd79246d0040464abe2 100644
--- a/net/spdy/spdy_http_stream.h
+++ b/net/spdy/spdy_http_stream.h
@@ -28,15 +28,20 @@ class UploadDataStream;
class SpdyHttpStream : public SpdyStream::Delegate {
public:
// SpdyHttpStream constructor
- explicit SpdyHttpStream(const scoped_refptr<SpdyStream>& stream);
+ SpdyHttpStream();
virtual ~SpdyHttpStream();
SpdyStream* stream() { return stream_.get(); }
+ // Initialize stream. Must be called before calling InitializeRequest().
+ int InitializeStream(SpdySession* spdy_session,
+ const HttpRequestInfo& request_info,
+ const BoundNetLog& stream_net_log,
+ CompletionCallback* callback);
+
// Initialize request. Must be called before calling SendRequest().
// SpdyHttpStream takes ownership of |upload_data|. |upload_data| may be NULL.
- void InitializeRequest(const HttpRequestInfo& request_info,
- base::Time request_time,
+ void InitializeRequest(base::Time request_time,
UploadDataStream* upload_data);
const HttpResponseInfo* GetResponseInfo() const;
@@ -104,7 +109,8 @@ class SpdyHttpStream : public SpdyStream::Delegate {
bool ShouldWaitForMoreBufferedData() const;
ScopedRunnableMethodFactory<SpdyHttpStream> read_callback_factory_;
- const scoped_refptr<SpdyStream> stream_;
+ scoped_refptr<SpdyStream> stream_;
+ scoped_refptr<SpdySession> spdy_session_;
// The request to send.
HttpRequestInfo request_info_;
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698