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

Unified Diff: net/spdy/spdy_stream.h

Issue 9705046: Switch CreateSpdyHeadersFromHttpRequest to construct the correct headers based on the spdy protocol… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 a7342a7a4cb64a40a981fb3343857a531bd28056..3d0804b257e566bd5297b926fb0ec13be00b3282 100644
--- a/net/spdy/spdy_stream.h
+++ b/net/spdy/spdy_stream.h
@@ -253,6 +253,8 @@ class NET_EXPORT_PRIVATE SpdyStream
// ChunkCallback methods.
virtual void OnChunkAvailable() OVERRIDE;
+ int GetProtocolVersion() const;
+
private:
enum State {
STATE_NONE,
@@ -298,6 +300,10 @@ class NET_EXPORT_PRIVATE SpdyStream
// the MessageLoop to replay all the data that the server has already sent.
void PushedStreamReplayData();
+ // Extracts the URL from the various fields in |headers|.
+ GURL GetUrlFromHeaderBlock(
+ const linked_ptr<spdy::SpdyHeaderBlock>& headers) const;
+
// There is a small period of time between when a server pushed stream is
// first created, and the pushed data is replayed. Any data received during
// this time should continue to be buffered.

Powered by Google App Engine
This is Rietveld 408576698