Index: net/http/http_stream_factory_impl_request.h |
diff --git a/net/http/http_stream_factory_impl_request.h b/net/http/http_stream_factory_impl_request.h |
index 4a7ace49884fb44d362bf286fd98eb9447d5922e..f2456bfb1de575f714116c00bafb7419981d0e7f 100644 |
--- a/net/http/http_stream_factory_impl_request.h |
+++ b/net/http/http_stream_factory_impl_request.h |
@@ -30,6 +30,11 @@ class HttpStreamFactoryImpl::Request : public HttpStreamRequest { |
// before knowing if SPDY is available. |
void SetSpdySessionKey(const HostPortProxyPair& spdy_session_key); |
+ // Called when the Job determines the appropriate |http_pipelining_key| for |
+ // the Request. Registers this Request with the factory, so that if an |
+ // existing pipeline becomes available, this Request can be late bound to it. |
+ void SetHttpPipeliningKey(const HostPortPair& http_pipelining_key); |
+ |
// Attaches |job| to this request. Does not mean that Request will use |job|, |
// but Request will own |job|. |
void AttachJob(HttpStreamFactoryImpl::Job* job); |
@@ -45,6 +50,10 @@ class HttpStreamFactoryImpl::Request : public HttpStreamRequest { |
// SpdySessionRequestMap. |
void RemoveRequestFromSpdySessionRequestMap(); |
+ // If this Request has a http_pipelining_key, remove this session from the |
+ // HttpPipeliningRequestMap. |
+ void RemoveRequestFromHttpPipeliningRequestMap(); |
+ |
// Called by an attached Job if it sets up a SpdySession. |
void OnSpdySessionReady(Job* job, |
scoped_refptr<SpdySession> spdy_session, |
@@ -102,6 +111,7 @@ class HttpStreamFactoryImpl::Request : public HttpStreamRequest { |
scoped_ptr<Job> bound_job_; |
std::set<HttpStreamFactoryImpl::Job*> jobs_; |
scoped_ptr<const HostPortProxyPair> spdy_session_key_; |
+ scoped_ptr<const HostPortPair> http_pipelining_key_; |
bool completed_; |
bool was_npn_negotiated_; |