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..da81b73cf43541a3f9640c7b07e2042df24a19e6 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); |
@@ -41,10 +46,14 @@ class HttpStreamFactoryImpl::Request : public HttpStreamRequest { |
bool using_spdy, |
const NetLog::Source& source); |
- // If this Request has a spdy_session_key, remove this session from the |
+ // If this Request has a |spdy_session_key_|, remove this session from the |
// 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_; |