Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Side by Side Diff: net/http/http_network_session.cc

Issue 1779733003: Fix bug in net::RequestPriority -> HTTP/2 dependency conversion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate Bence's detailed comments. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 enable_spdy31(true), 94 enable_spdy31(true),
95 enable_http2(true), 95 enable_http2(true),
96 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), 96 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize),
97 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize), 97 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize),
98 time_func(&base::TimeTicks::Now), 98 time_func(&base::TimeTicks::Now),
99 parse_alternative_services(false), 99 parse_alternative_services(false),
100 enable_alternative_service_with_different_host(false), 100 enable_alternative_service_with_different_host(false),
101 alternative_service_probability_threshold(1), 101 alternative_service_probability_threshold(1),
102 enable_npn(true), 102 enable_npn(true),
103 enable_brotli(false), 103 enable_brotli(false),
104 enable_priority_dependencies(true),
104 enable_quic(false), 105 enable_quic(false),
105 disable_quic_on_timeout_with_open_streams(false), 106 disable_quic_on_timeout_with_open_streams(false),
106 enable_quic_for_proxies(false), 107 enable_quic_for_proxies(false),
107 enable_quic_port_selection(true), 108 enable_quic_port_selection(true),
108 quic_always_require_handshake_confirmation(false), 109 quic_always_require_handshake_confirmation(false),
109 quic_disable_connection_pooling(false), 110 quic_disable_connection_pooling(false),
110 quic_load_server_info_timeout_srtt_multiplier(0.25f), 111 quic_load_server_info_timeout_srtt_multiplier(0.25f),
111 quic_enable_connection_racing(false), 112 quic_enable_connection_racing(false),
112 quic_enable_non_blocking_io(false), 113 quic_enable_non_blocking_io(false),
113 quic_disable_disk_cache(false), 114 quic_disable_disk_cache(false),
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 params.quic_idle_connection_timeout_seconds, 189 params.quic_idle_connection_timeout_seconds,
189 params.quic_migrate_sessions_on_network_change, 190 params.quic_migrate_sessions_on_network_change,
190 params.quic_migrate_sessions_early, 191 params.quic_migrate_sessions_early,
191 params.quic_connection_options, 192 params.quic_connection_options,
192 params.enable_token_binding), 193 params.enable_token_binding),
193 spdy_session_pool_(params.host_resolver, 194 spdy_session_pool_(params.host_resolver,
194 params.ssl_config_service, 195 params.ssl_config_service,
195 params.http_server_properties, 196 params.http_server_properties,
196 params.transport_security_state, 197 params.transport_security_state,
197 params.enable_spdy_ping_based_connection_checking, 198 params.enable_spdy_ping_based_connection_checking,
199 params.enable_priority_dependencies,
198 params.spdy_default_protocol, 200 params.spdy_default_protocol,
199 params.spdy_session_max_recv_window_size, 201 params.spdy_session_max_recv_window_size,
200 params.spdy_stream_max_recv_window_size, 202 params.spdy_stream_max_recv_window_size,
201 params.time_func, 203 params.time_func,
202 params.proxy_delegate), 204 params.proxy_delegate),
203 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), 205 http_stream_factory_(new HttpStreamFactoryImpl(this, false)),
204 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), 206 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)),
205 params_(params) { 207 params_(params) {
206 DCHECK(proxy_service_); 208 DCHECK(proxy_service_);
207 DCHECK(ssl_config_service_.get()); 209 DCHECK(ssl_config_service_.get());
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 case WEBSOCKET_SOCKET_POOL: 389 case WEBSOCKET_SOCKET_POOL:
388 return websocket_socket_pool_manager_.get(); 390 return websocket_socket_pool_manager_.get();
389 default: 391 default:
390 NOTREACHED(); 392 NOTREACHED();
391 break; 393 break;
392 } 394 }
393 return NULL; 395 return NULL;
394 } 396 }
395 397
396 } // namespace net 398 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698