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_network_session.h" | 5 #include "net/http/http_network_session.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/debug/stack_trace.h" | 10 #include "base/debug/stack_trace.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 const net::HttpNetworkSession::Params& params) { | 38 const net::HttpNetworkSession::Params& params) { |
39 // TODO(yutak): Differentiate WebSocket pool manager and allow more | 39 // TODO(yutak): Differentiate WebSocket pool manager and allow more |
40 // simultaneous connections for WebSockets. | 40 // simultaneous connections for WebSockets. |
41 return new net::ClientSocketPoolManagerImpl( | 41 return new net::ClientSocketPoolManagerImpl( |
42 params.net_log, params.client_socket_factory | 42 params.net_log, params.client_socket_factory |
43 ? params.client_socket_factory | 43 ? params.client_socket_factory |
44 : net::ClientSocketFactory::GetDefaultFactory(), | 44 : net::ClientSocketFactory::GetDefaultFactory(), |
45 params.host_resolver, params.cert_verifier, params.channel_id_service, | 45 params.host_resolver, params.cert_verifier, params.channel_id_service, |
46 params.transport_security_state, params.cert_transparency_verifier, | 46 params.transport_security_state, params.cert_transparency_verifier, |
47 params.cert_policy_enforcer, params.ssl_session_cache_shard, | 47 params.cert_policy_enforcer, params.ssl_session_cache_shard, |
48 params.ssl_config_service, params.enable_ssl_connect_job_waiting, | 48 params.ssl_config_service, pool_type); |
49 pool_type); | |
50 } | 49 } |
51 | 50 |
52 } // unnamed namespace | 51 } // unnamed namespace |
53 | 52 |
54 namespace net { | 53 namespace net { |
55 | 54 |
56 HttpNetworkSession::Params::Params() | 55 HttpNetworkSession::Params::Params() |
57 : client_socket_factory(NULL), | 56 : client_socket_factory(NULL), |
58 host_resolver(NULL), | 57 host_resolver(NULL), |
59 cert_verifier(NULL), | 58 cert_verifier(NULL), |
60 cert_policy_enforcer(NULL), | 59 cert_policy_enforcer(NULL), |
61 channel_id_service(NULL), | 60 channel_id_service(NULL), |
62 transport_security_state(NULL), | 61 transport_security_state(NULL), |
63 cert_transparency_verifier(NULL), | 62 cert_transparency_verifier(NULL), |
64 proxy_service(NULL), | 63 proxy_service(NULL), |
65 ssl_config_service(NULL), | 64 ssl_config_service(NULL), |
66 http_auth_handler_factory(NULL), | 65 http_auth_handler_factory(NULL), |
67 network_delegate(NULL), | 66 network_delegate(NULL), |
68 net_log(NULL), | 67 net_log(NULL), |
69 host_mapping_rules(NULL), | 68 host_mapping_rules(NULL), |
70 enable_ssl_connect_job_waiting(false), | |
71 ignore_certificate_errors(false), | 69 ignore_certificate_errors(false), |
72 use_stale_while_revalidate(false), | 70 use_stale_while_revalidate(false), |
73 testing_fixed_http_port(0), | 71 testing_fixed_http_port(0), |
74 testing_fixed_https_port(0), | 72 testing_fixed_https_port(0), |
75 enable_tcp_fast_open_for_ssl(false), | 73 enable_tcp_fast_open_for_ssl(false), |
76 force_spdy_single_domain(false), | 74 force_spdy_single_domain(false), |
77 enable_spdy_compression(true), | 75 enable_spdy_compression(true), |
78 enable_spdy_ping_based_connection_checking(true), | 76 enable_spdy_ping_based_connection_checking(true), |
79 spdy_default_protocol(kProtoUnknown), | 77 spdy_default_protocol(kProtoUnknown), |
80 spdy_stream_initial_recv_window_size(0), | 78 spdy_stream_initial_recv_window_size(0), |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 case WEBSOCKET_SOCKET_POOL: | 316 case WEBSOCKET_SOCKET_POOL: |
319 return websocket_socket_pool_manager_.get(); | 317 return websocket_socket_pool_manager_.get(); |
320 default: | 318 default: |
321 NOTREACHED(); | 319 NOTREACHED(); |
322 break; | 320 break; |
323 } | 321 } |
324 return NULL; | 322 return NULL; |
325 } | 323 } |
326 | 324 |
327 } // namespace net | 325 } // namespace net |
OLD | NEW |