| Index: net/http/http_stream_factory_impl.cc
|
| diff --git a/net/http/http_stream_factory_impl.cc b/net/http/http_stream_factory_impl.cc
|
| index 364d202fedd85ad6962a5851732380523966977a..60b88226657c3478beea2023e113dd940d5bc062 100644
|
| --- a/net/http/http_stream_factory_impl.cc
|
| +++ b/net/http/http_stream_factory_impl.cc
|
| @@ -10,6 +10,9 @@
|
| #include "net/base/net_log.h"
|
| #include "net/base/net_util.h"
|
| #include "net/http/http_network_session.h"
|
| +#include "net/http/http_pipelined_connection.h"
|
| +#include "net/http/http_pipelined_host.h"
|
| +#include "net/http/http_pipelined_stream.h"
|
| #include "net/http/http_server_properties.h"
|
| #include "net/http/http_stream_factory_impl_job.h"
|
| #include "net/http/http_stream_factory_impl_request.h"
|
| @@ -221,4 +224,21 @@ void HttpStreamFactoryImpl::OnPreconnectsComplete(const Job* job) {
|
| OnPreconnectsCompleteInternal();
|
| }
|
|
|
| +void HttpStreamFactoryImpl::OnHttpPipelinedHostHasAdditionalCapacity(
|
| + const HostPortPair& origin) {
|
| + HttpPipelinedStream* stream;
|
| + while (ContainsKey(http_pipelining_request_map_, origin) &&
|
| + (stream = session_->http_pipelined_host_pool()->
|
| + CreateStreamOnExistingPipeline(origin))) {
|
| + Request* request = *http_pipelining_request_map_[origin].begin();
|
| + request->Complete(stream->was_npn_negotiated(),
|
| + false, // not using_spdy
|
| + stream->source());
|
| + request->OnStreamReady(NULL,
|
| + stream->used_ssl_config(),
|
| + stream->used_proxy_info(),
|
| + stream);
|
| + }
|
| +}
|
| +
|
| } // namespace net
|
|
|