| 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_client_socket_pool.h" | 5 #include "net/socket/websocket_transport_client_socket_pool.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 ClientSocketPool::RespectLimits respect_limits, | 34 ClientSocketPool::RespectLimits respect_limits, |
| 35 const scoped_refptr<TransportSocketParams>& params, | 35 const scoped_refptr<TransportSocketParams>& params, |
| 36 base::TimeDelta timeout_duration, | 36 base::TimeDelta timeout_duration, |
| 37 const CompletionCallback& callback, | 37 const CompletionCallback& callback, |
| 38 ClientSocketFactory* client_socket_factory, | 38 ClientSocketFactory* client_socket_factory, |
| 39 HostResolver* host_resolver, | 39 HostResolver* host_resolver, |
| 40 ClientSocketHandle* handle, | 40 ClientSocketHandle* handle, |
| 41 Delegate* delegate, | 41 Delegate* delegate, |
| 42 NetLog* pool_net_log, | 42 NetLog* pool_net_log, |
| 43 const NetLogWithSource& request_net_log) | 43 const NetLogWithSource& request_net_log) |
| 44 : ConnectJob( | 44 : ConnectJob(group_name, |
| 45 group_name, | 45 timeout_duration, |
| 46 timeout_duration, | 46 priority, |
| 47 priority, | 47 respect_limits, |
| 48 respect_limits, | 48 delegate, |
| 49 delegate, | 49 NetLogWithSource::Make( |
| 50 NetLogWithSource::Make(pool_net_log, NetLogSourceType::CONNECT_JOB)), | 50 pool_net_log, |
| 51 NetLogSourceType::WEB_SOCKET_TRANSPORT_CONNECT_JOB)), |
| 51 params_(params), | 52 params_(params), |
| 52 resolver_(host_resolver), | 53 resolver_(host_resolver), |
| 53 client_socket_factory_(client_socket_factory), | 54 client_socket_factory_(client_socket_factory), |
| 54 next_state_(STATE_NONE), | 55 next_state_(STATE_NONE), |
| 55 race_result_(TransportConnectJob::RACE_UNKNOWN), | 56 race_result_(TransportConnectJob::RACE_UNKNOWN), |
| 56 handle_(handle), | 57 handle_(handle), |
| 57 callback_(callback), | 58 callback_(callback), |
| 58 request_net_log_(request_net_log), | 59 request_net_log_(request_net_log), |
| 59 had_ipv4_(false), | 60 had_ipv4_(false), |
| 60 had_ipv6_(false) {} | 61 had_ipv6_(false) {} |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 handle(handle), | 695 handle(handle), |
| 695 callback(callback), | 696 callback(callback), |
| 696 net_log(net_log) {} | 697 net_log(net_log) {} |
| 697 | 698 |
| 698 WebSocketTransportClientSocketPool::StalledRequest::StalledRequest( | 699 WebSocketTransportClientSocketPool::StalledRequest::StalledRequest( |
| 699 const StalledRequest& other) = default; | 700 const StalledRequest& other) = default; |
| 700 | 701 |
| 701 WebSocketTransportClientSocketPool::StalledRequest::~StalledRequest() {} | 702 WebSocketTransportClientSocketPool::StalledRequest::~StalledRequest() {} |
| 702 | 703 |
| 703 } // namespace net | 704 } // namespace net |
| OLD | NEW |