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

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: Make bi-directional stream unittests enable priority->dependency setting. 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
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 spdy_default_protocol(kProtoUnknown), 92 spdy_default_protocol(kProtoUnknown),
93 enable_spdy31(true), 93 enable_spdy31(true),
94 enable_http2(true), 94 enable_http2(true),
95 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), 95 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize),
96 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize), 96 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize),
97 time_func(&base::TimeTicks::Now), 97 time_func(&base::TimeTicks::Now),
98 parse_alternative_services(false), 98 parse_alternative_services(false),
99 enable_alternative_service_with_different_host(false), 99 enable_alternative_service_with_different_host(false),
100 enable_npn(true), 100 enable_npn(true),
101 enable_brotli(false), 101 enable_brotli(false),
102 enable_priority_dependencies(true),
102 enable_quic(false), 103 enable_quic(false),
103 disable_quic_on_timeout_with_open_streams(false), 104 disable_quic_on_timeout_with_open_streams(false),
104 enable_quic_for_proxies(false), 105 enable_quic_for_proxies(false),
105 enable_quic_port_selection(true), 106 enable_quic_port_selection(true),
106 quic_always_require_handshake_confirmation(false), 107 quic_always_require_handshake_confirmation(false),
107 quic_disable_connection_pooling(false), 108 quic_disable_connection_pooling(false),
108 quic_load_server_info_timeout_srtt_multiplier(0.25f), 109 quic_load_server_info_timeout_srtt_multiplier(0.25f),
109 quic_enable_connection_racing(false), 110 quic_enable_connection_racing(false),
110 quic_enable_non_blocking_io(false), 111 quic_enable_non_blocking_io(false),
111 quic_disable_disk_cache(false), 112 quic_disable_disk_cache(false),
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 params.quic_idle_connection_timeout_seconds, 187 params.quic_idle_connection_timeout_seconds,
187 params.quic_migrate_sessions_on_network_change, 188 params.quic_migrate_sessions_on_network_change,
188 params.quic_migrate_sessions_early, 189 params.quic_migrate_sessions_early,
189 params.quic_connection_options, 190 params.quic_connection_options,
190 params.enable_token_binding), 191 params.enable_token_binding),
191 spdy_session_pool_(params.host_resolver, 192 spdy_session_pool_(params.host_resolver,
192 params.ssl_config_service, 193 params.ssl_config_service,
193 params.http_server_properties, 194 params.http_server_properties,
194 params.transport_security_state, 195 params.transport_security_state,
195 params.enable_spdy_ping_based_connection_checking, 196 params.enable_spdy_ping_based_connection_checking,
197 params.enable_priority_dependencies,
196 params.spdy_default_protocol, 198 params.spdy_default_protocol,
197 params.spdy_session_max_recv_window_size, 199 params.spdy_session_max_recv_window_size,
198 params.spdy_stream_max_recv_window_size, 200 params.spdy_stream_max_recv_window_size,
199 params.time_func, 201 params.time_func,
200 params.proxy_delegate), 202 params.proxy_delegate),
201 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), 203 http_stream_factory_(new HttpStreamFactoryImpl(this, false)),
202 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), 204 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)),
203 params_(params) { 205 params_(params) {
204 DCHECK(proxy_service_); 206 DCHECK(proxy_service_);
205 DCHECK(ssl_config_service_.get()); 207 DCHECK(ssl_config_service_.get());
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 case WEBSOCKET_SOCKET_POOL: 383 case WEBSOCKET_SOCKET_POOL:
382 return websocket_socket_pool_manager_.get(); 384 return websocket_socket_pool_manager_.get();
383 default: 385 default:
384 NOTREACHED(); 386 NOTREACHED();
385 break; 387 break;
386 } 388 }
387 return NULL; 389 return NULL;
388 } 390 }
389 391
390 } // namespace net 392 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698