Index: net/http/http_pipelined_connection_impl.h |
diff --git a/net/http/http_pipelined_connection_impl.h b/net/http/http_pipelined_connection_impl.h |
index e09c3f9dbcc5f98fa44880f49a709308cb8951bc..3f9e26969fd16828869bbad9b5a43928cdffa2d1 100644 |
--- a/net/http/http_pipelined_connection_impl.h |
+++ b/net/http/http_pipelined_connection_impl.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -46,6 +46,24 @@ class SSLInfo; |
class NET_EXPORT_PRIVATE HttpPipelinedConnectionImpl |
: public HttpPipelinedConnection { |
public: |
+ class Factory : public HttpPipelinedConnection::Factory { |
+ public: |
+ virtual HttpPipelinedConnection* CreateNewPipeline( |
+ ClientSocketHandle* connection, |
+ HttpPipelinedConnection::Delegate* delegate, |
+ const HostPortPair& origin, |
+ const SSLConfig& used_ssl_config, |
+ const ProxyInfo& used_proxy_info, |
+ const BoundNetLog& net_log, |
+ bool was_npn_negotiated, |
+ SSLClientSocket::NextProto protocol_negotiated) OVERRIDE { |
+ return new HttpPipelinedConnectionImpl(connection, delegate, origin, |
+ used_ssl_config, used_proxy_info, |
+ net_log, was_npn_negotiated, |
+ protocol_negotiated); |
+ } |
+ }; |
+ |
HttpPipelinedConnectionImpl(ClientSocketHandle* connection, |
Delegate* delegate, |
const HostPortPair& origin, |