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

Unified Diff: net/spdy/spdy_stream.h

Issue 331663007: Implement PUSH_PROMISE handling in spdy_session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing. Some strange andriod compile errors in skia Created 6 years, 6 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_session.cc ('k') | net/spdy/spdy_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_stream.h
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h
index 431d26d17b917d97221d496dc6f4b8581fe44bcf..3a4a283fd97e7c55144b6e4852852307bee63d71 100644
--- a/net/spdy/spdy_stream.h
+++ b/net/spdy/spdy_stream.h
@@ -301,9 +301,7 @@ class NET_EXPORT_PRIVATE SpdyStream {
// Called by the SpdySession when a frame carrying request headers opening a
// push stream is received. Stream transits to STATE_RESERVED_REMOTE state.
- // Returns a status code; if it is an error, the stream was closed by this
- // function.
- int OnPushPromiseHeadersReceived(const SpdyHeaderBlock& headers);
+ void OnPushPromiseHeadersReceived(const SpdyHeaderBlock& headers);
// Called by the SpdySession when response data has been received
// for this stream. This callback may be called multiple times as
@@ -406,6 +404,11 @@ class NET_EXPORT_PRIVATE SpdyStream {
// response headers are complete, and it is not in a half-closed state.
bool IsOpen() const;
+ // Returns whether the stream is reserved by remote endpoint: server has sent
+ // intended request headers for a pushed stream, but haven't started response
+ // yet.
+ bool IsReservedRemote() const;
+
// Returns the protocol used by this stream. Always between
// kProtoSPDYMinimumVersion and kProtoSPDYMaximumVersion.
NextProto GetProtocol() const;
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698