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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 host_mapping_rules(NULL), | 67 host_mapping_rules(NULL), |
68 ignore_certificate_errors(false), | 68 ignore_certificate_errors(false), |
69 use_stale_while_revalidate(false), | 69 use_stale_while_revalidate(false), |
70 testing_fixed_http_port(0), | 70 testing_fixed_http_port(0), |
71 testing_fixed_https_port(0), | 71 testing_fixed_https_port(0), |
72 enable_tcp_fast_open_for_ssl(false), | 72 enable_tcp_fast_open_for_ssl(false), |
73 force_spdy_single_domain(false), | 73 force_spdy_single_domain(false), |
74 enable_spdy_compression(true), | 74 enable_spdy_compression(true), |
75 enable_spdy_ping_based_connection_checking(true), | 75 enable_spdy_ping_based_connection_checking(true), |
76 spdy_default_protocol(kProtoUnknown), | 76 spdy_default_protocol(kProtoUnknown), |
77 spdy_session_max_recv_window_size(0), | |
77 spdy_stream_initial_recv_window_size(0), | 78 spdy_stream_initial_recv_window_size(0), |
Ryan Hamilton
2015/04/07 14:56:40
instead of setting these to 0 by default, an alter
Bence
2015/04/07 20:21:37
Done. Nice.
I moved the constant to this file, s
| |
78 spdy_initial_max_concurrent_streams(0), | 79 spdy_initial_max_concurrent_streams(0), |
79 spdy_max_concurrent_streams_limit(0), | 80 spdy_max_concurrent_streams_limit(0), |
80 time_func(&base::TimeTicks::Now), | 81 time_func(&base::TimeTicks::Now), |
81 force_spdy_over_ssl(true), | 82 force_spdy_over_ssl(true), |
82 force_spdy_always(false), | 83 force_spdy_always(false), |
83 use_alternate_protocols(false), | 84 use_alternate_protocols(false), |
84 alternate_protocol_probability_threshold(1), | 85 alternate_protocol_probability_threshold(1), |
85 enable_quic(false), | 86 enable_quic(false), |
86 enable_quic_for_proxies(false), | 87 enable_quic_for_proxies(false), |
87 enable_quic_port_selection(true), | 88 enable_quic_port_selection(true), |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 params.quic_socket_receive_buffer_size, | 146 params.quic_socket_receive_buffer_size, |
146 params.quic_connection_options), | 147 params.quic_connection_options), |
147 spdy_session_pool_(params.host_resolver, | 148 spdy_session_pool_(params.host_resolver, |
148 params.ssl_config_service, | 149 params.ssl_config_service, |
149 params.http_server_properties, | 150 params.http_server_properties, |
150 params.transport_security_state, | 151 params.transport_security_state, |
151 params.force_spdy_single_domain, | 152 params.force_spdy_single_domain, |
152 params.enable_spdy_compression, | 153 params.enable_spdy_compression, |
153 params.enable_spdy_ping_based_connection_checking, | 154 params.enable_spdy_ping_based_connection_checking, |
154 params.spdy_default_protocol, | 155 params.spdy_default_protocol, |
156 params.spdy_session_max_recv_window_size, | |
155 params.spdy_stream_initial_recv_window_size, | 157 params.spdy_stream_initial_recv_window_size, |
156 params.spdy_initial_max_concurrent_streams, | 158 params.spdy_initial_max_concurrent_streams, |
157 params.spdy_max_concurrent_streams_limit, | 159 params.spdy_max_concurrent_streams_limit, |
158 params.time_func, | 160 params.time_func, |
159 params.trusted_spdy_proxy), | 161 params.trusted_spdy_proxy), |
160 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), | 162 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), |
161 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), | 163 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), |
162 params_(params) { | 164 params_(params) { |
163 DCHECK(proxy_service_); | 165 DCHECK(proxy_service_); |
164 DCHECK(ssl_config_service_.get()); | 166 DCHECK(ssl_config_service_.get()); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 case WEBSOCKET_SOCKET_POOL: | 317 case WEBSOCKET_SOCKET_POOL: |
316 return websocket_socket_pool_manager_.get(); | 318 return websocket_socket_pool_manager_.get(); |
317 default: | 319 default: |
318 NOTREACHED(); | 320 NOTREACHED(); |
319 break; | 321 break; |
320 } | 322 } |
321 return NULL; | 323 return NULL; |
322 } | 324 } |
323 | 325 |
324 } // namespace net | 326 } // namespace net |
OLD | NEW |