| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 class ClientSocketFactory; | 25 class ClientSocketFactory; |
| 26 | 26 |
| 27 class NET_EXPORT_PRIVATE TransportSocketParams | 27 class NET_EXPORT_PRIVATE TransportSocketParams |
| 28 : public base::RefCounted<TransportSocketParams> { | 28 : public base::RefCounted<TransportSocketParams> { |
| 29 public: | 29 public: |
| 30 TransportSocketParams(const HostPortPair& host_port_pair, | 30 TransportSocketParams(const HostPortPair& host_port_pair, |
| 31 RequestPriority priority, | 31 RequestPriority priority, |
| 32 const GURL& referrer, | |
| 33 bool disable_resolver_cache, | 32 bool disable_resolver_cache, |
| 34 bool ignore_limits); | 33 bool ignore_limits); |
| 35 | 34 |
| 36 const HostResolver::RequestInfo& destination() const { return destination_; } | 35 const HostResolver::RequestInfo& destination() const { return destination_; } |
| 37 bool ignore_limits() const { return ignore_limits_; } | 36 bool ignore_limits() const { return ignore_limits_; } |
| 38 | 37 |
| 39 private: | 38 private: |
| 40 friend class base::RefCounted<TransportSocketParams>; | 39 friend class base::RefCounted<TransportSocketParams>; |
| 41 ~TransportSocketParams(); | 40 ~TransportSocketParams(); |
| 42 | 41 |
| 43 void Initialize(RequestPriority priority, const GURL& referrer, | 42 void Initialize(RequestPriority priority, bool disable_resolver_cache); |
| 44 bool disable_resolver_cache); | |
| 45 | 43 |
| 46 HostResolver::RequestInfo destination_; | 44 HostResolver::RequestInfo destination_; |
| 47 bool ignore_limits_; | 45 bool ignore_limits_; |
| 48 | 46 |
| 49 DISALLOW_COPY_AND_ASSIGN(TransportSocketParams); | 47 DISALLOW_COPY_AND_ASSIGN(TransportSocketParams); |
| 50 }; | 48 }; |
| 51 | 49 |
| 52 // TransportConnectJob handles the host resolution necessary for socket creation | 50 // TransportConnectJob handles the host resolution necessary for socket creation |
| 53 // and the transport (likely TCP) connect. TransportConnectJob also has fallback | 51 // and the transport (likely TCP) connect. TransportConnectJob also has fallback |
| 54 // logic for IPv6 connect() timeouts (which may happen due to networks / routers | 52 // logic for IPv6 connect() timeouts (which may happen due to networks / routers |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 219 |
| 222 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 220 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
| 223 }; | 221 }; |
| 224 | 222 |
| 225 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, | 223 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, |
| 226 TransportSocketParams); | 224 TransportSocketParams); |
| 227 | 225 |
| 228 } // namespace net | 226 } // namespace net |
| 229 | 227 |
| 230 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 228 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |