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.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h
index 89cfb18..cf7ea4a 100644
--- a/net/spdy/spdy_stream.h
+++ b/net/spdy/spdy_stream.h
@@ -16,12 +16,12 @@
#include "net/base/completion_callback.h"
#include "net/base/io_buffer.h"
#include "net/base/net_log.h"
+#include "net/http/http_request_info.h"
#include "net/spdy/spdy_framer.h"
#include "net/spdy/spdy_protocol.h"
namespace net {
-class HttpRequestInfo;
class HttpResponseInfo;
class SpdySession;
class UploadData;
@@ -74,8 +74,6 @@ class SpdyStream : public base::RefCounted<SpdyStream> {
// Returns the number of bytes uploaded.
uint64 GetUploadProgress() const;
- const HttpResponseInfo* GetResponseInfo() const;
-
// Is this stream a pushed stream from the server.
bool pushed() const { return pushed_; }
@@ -92,6 +90,12 @@ class SpdyStream : public base::RefCounted<SpdyStream> {
int priority() const { return priority_; }
void set_priority(int priority) { priority_ = priority; }
+ const HttpResponseInfo* GetResponseInfo() const;
+ const HttpRequestInfo* GetRequestInfo() const;
+ void SetRequestInfo(const HttpRequestInfo& request);
+ base::Time GetRequestTime() const;
+ void SetRequestTime(base::Time t);
+
// Called by the SpdySession when a response (e.g. a SYN_REPLY) has been
// received for this stream. |path| is the path of the URL for a server
// initiated stream, otherwise is empty.
@@ -180,6 +184,13 @@ class SpdyStream : public base::RefCounted<SpdyStream> {
scoped_refptr<SpdySession> session_;
+ // The request to send.
+ HttpRequestInfo request_;
+
+ // The time at which the request was made that resulted in this response.
+ // For cached responses, this time could be "far" in the past.
+ base::Time request_time_;
+
HttpResponseInfo* response_;
scoped_ptr<UploadDataStream> request_body_stream_;