OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/socket/websocket_transport_connect_sub_job.h" | 5 #include "net/socket/websocket_transport_connect_sub_job.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/log/net_log.h" | 10 #include "net/log/net_log_with_source.h" |
11 #include "net/socket/client_socket_factory.h" | 11 #include "net/socket/client_socket_factory.h" |
12 #include "net/socket/websocket_endpoint_lock_manager.h" | 12 #include "net/socket/websocket_endpoint_lock_manager.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 WebSocketTransportConnectSubJob::WebSocketTransportConnectSubJob( | 16 WebSocketTransportConnectSubJob::WebSocketTransportConnectSubJob( |
17 const AddressList& addresses, | 17 const AddressList& addresses, |
18 WebSocketTransportConnectJob* parent_job, | 18 WebSocketTransportConnectJob* parent_job, |
19 SubJobType type) | 19 SubJobType type) |
20 : parent_job_(parent_job), | 20 : parent_job_(parent_job), |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 return result; | 161 return result; |
162 } | 162 } |
163 | 163 |
164 endpoint_lock_manager->RememberSocket(transport_socket_.get(), | 164 endpoint_lock_manager->RememberSocket(transport_socket_.get(), |
165 CurrentAddress()); | 165 CurrentAddress()); |
166 | 166 |
167 return result; | 167 return result; |
168 } | 168 } |
169 | 169 |
170 } // namespace net | 170 } // namespace net |
OLD | NEW |