OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/http/http_pipelined_connection_impl.h" | 5 #include "net/http/http_pipelined_connection_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 Value* NetLogHostPortPairCallback(const HostPortPair* host_port_pair, | 46 Value* NetLogHostPortPairCallback(const HostPortPair* host_port_pair, |
47 NetLog::LogLevel /* log_level */) { | 47 NetLog::LogLevel /* log_level */) { |
48 DictionaryValue* dict = new DictionaryValue; | 48 DictionaryValue* dict = new DictionaryValue; |
49 dict->SetString("host_and_port", host_port_pair->ToString()); | 49 dict->SetString("host_and_port", host_port_pair->ToString()); |
50 return dict; | 50 return dict; |
51 } | 51 } |
52 | 52 |
53 } // anonymous namespace | 53 } // anonymous namespace |
54 | 54 |
| 55 HttpPipelinedConnection* |
| 56 HttpPipelinedConnectionImpl::Factory::CreateNewPipeline( |
| 57 ClientSocketHandle* connection, |
| 58 HttpPipelinedConnection::Delegate* delegate, |
| 59 const HostPortPair& origin, |
| 60 const SSLConfig& used_ssl_config, |
| 61 const ProxyInfo& used_proxy_info, |
| 62 const BoundNetLog& net_log, |
| 63 bool was_npn_negotiated, |
| 64 NextProto protocol_negotiated) { |
| 65 return new HttpPipelinedConnectionImpl(connection, delegate, origin, |
| 66 used_ssl_config, used_proxy_info, |
| 67 net_log, was_npn_negotiated, |
| 68 protocol_negotiated); |
| 69 } |
| 70 |
55 HttpPipelinedConnectionImpl::HttpPipelinedConnectionImpl( | 71 HttpPipelinedConnectionImpl::HttpPipelinedConnectionImpl( |
56 ClientSocketHandle* connection, | 72 ClientSocketHandle* connection, |
57 HttpPipelinedConnection::Delegate* delegate, | 73 HttpPipelinedConnection::Delegate* delegate, |
58 const HostPortPair& origin, | 74 const HostPortPair& origin, |
59 const SSLConfig& used_ssl_config, | 75 const SSLConfig& used_ssl_config, |
60 const ProxyInfo& used_proxy_info, | 76 const ProxyInfo& used_proxy_info, |
61 const BoundNetLog& net_log, | 77 const BoundNetLog& net_log, |
62 bool was_npn_negotiated, | 78 bool was_npn_negotiated, |
63 NextProto protocol_negotiated) | 79 NextProto protocol_negotiated) |
64 : delegate_(delegate), | 80 : delegate_(delegate), |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 } | 833 } |
818 | 834 |
819 HttpPipelinedConnectionImpl::StreamInfo::StreamInfo() | 835 HttpPipelinedConnectionImpl::StreamInfo::StreamInfo() |
820 : state(STREAM_CREATED) { | 836 : state(STREAM_CREATED) { |
821 } | 837 } |
822 | 838 |
823 HttpPipelinedConnectionImpl::StreamInfo::~StreamInfo() { | 839 HttpPipelinedConnectionImpl::StreamInfo::~StreamInfo() { |
824 } | 840 } |
825 | 841 |
826 } // namespace net | 842 } // namespace net |
OLD | NEW |