summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/spdy/spdy_stream.h')
-rw-r--r--net/spdy/spdy_stream.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h
index 431d26d..3a4a283 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;