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/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 ssl_config_service(NULL), | 83 ssl_config_service(NULL), |
84 http_auth_handler_factory(NULL), | 84 http_auth_handler_factory(NULL), |
85 net_log(NULL), | 85 net_log(NULL), |
86 host_mapping_rules(NULL), | 86 host_mapping_rules(NULL), |
87 socket_performance_watcher_factory(NULL), | 87 socket_performance_watcher_factory(NULL), |
88 ignore_certificate_errors(false), | 88 ignore_certificate_errors(false), |
89 testing_fixed_http_port(0), | 89 testing_fixed_http_port(0), |
90 testing_fixed_https_port(0), | 90 testing_fixed_https_port(0), |
91 enable_tcp_fast_open_for_ssl(false), | 91 enable_tcp_fast_open_for_ssl(false), |
92 enable_spdy_ping_based_connection_checking(true), | 92 enable_spdy_ping_based_connection_checking(true), |
93 spdy_default_protocol(kProtoUnknown), | |
94 enable_http2(true), | 93 enable_http2(true), |
95 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), | 94 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), |
96 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize), | 95 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize), |
97 time_func(&base::TimeTicks::Now), | 96 time_func(&base::TimeTicks::Now), |
98 enable_http2_alternative_service_with_different_host(false), | 97 enable_http2_alternative_service_with_different_host(false), |
99 enable_quic_alternative_service_with_different_host(true), | 98 enable_quic_alternative_service_with_different_host(true), |
100 enable_priority_dependencies(true), | 99 enable_priority_dependencies(true), |
101 enable_quic(false), | 100 enable_quic(false), |
102 disable_quic_on_timeout_with_open_streams(false), | 101 disable_quic_on_timeout_with_open_streams(false), |
103 enable_quic_port_selection(true), | 102 enable_quic_port_selection(true), |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 params.quic_migrate_sessions_early, | 188 params.quic_migrate_sessions_early, |
190 params.quic_force_hol_blocking, | 189 params.quic_force_hol_blocking, |
191 params.quic_connection_options, | 190 params.quic_connection_options, |
192 params.enable_token_binding), | 191 params.enable_token_binding), |
193 spdy_session_pool_(params.host_resolver, | 192 spdy_session_pool_(params.host_resolver, |
194 params.ssl_config_service, | 193 params.ssl_config_service, |
195 params.http_server_properties, | 194 params.http_server_properties, |
196 params.transport_security_state, | 195 params.transport_security_state, |
197 params.enable_spdy_ping_based_connection_checking, | 196 params.enable_spdy_ping_based_connection_checking, |
198 params.enable_priority_dependencies, | 197 params.enable_priority_dependencies, |
199 params.spdy_default_protocol, | |
200 params.spdy_session_max_recv_window_size, | 198 params.spdy_session_max_recv_window_size, |
201 params.spdy_stream_max_recv_window_size, | 199 params.spdy_stream_max_recv_window_size, |
202 params.time_func, | 200 params.time_func, |
203 params.proxy_delegate), | 201 params.proxy_delegate), |
204 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), | 202 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), |
205 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), | 203 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), |
206 params_(params) { | 204 params_(params) { |
207 DCHECK(proxy_service_); | 205 DCHECK(proxy_service_); |
208 DCHECK(ssl_config_service_.get()); | 206 DCHECK(ssl_config_service_.get()); |
209 CHECK(http_server_properties_); | 207 CHECK(http_server_properties_); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 case WEBSOCKET_SOCKET_POOL: | 394 case WEBSOCKET_SOCKET_POOL: |
397 return websocket_socket_pool_manager_.get(); | 395 return websocket_socket_pool_manager_.get(); |
398 default: | 396 default: |
399 NOTREACHED(); | 397 NOTREACHED(); |
400 break; | 398 break; |
401 } | 399 } |
402 return NULL; | 400 return NULL; |
403 } | 401 } |
404 | 402 |
405 } // namespace net | 403 } // namespace net |
OLD | NEW |