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

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

Issue 1808303005: QUIC - extend origin-to-force-quic-on command line option to accept list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments for Patch Set 1 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_stream_factory_impl_job.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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 dict->SetBoolean("quic_enabled_for_proxies", params_.enable_quic_for_proxies); 308 dict->SetBoolean("quic_enabled_for_proxies", params_.enable_quic_for_proxies);
309 dict->SetBoolean("enable_quic_port_selection", 309 dict->SetBoolean("enable_quic_port_selection",
310 params_.enable_quic_port_selection); 310 params_.enable_quic_port_selection);
311 scoped_ptr<base::ListValue> connection_options(new base::ListValue); 311 scoped_ptr<base::ListValue> connection_options(new base::ListValue);
312 for (QuicTagVector::const_iterator it = 312 for (QuicTagVector::const_iterator it =
313 params_.quic_connection_options.begin(); 313 params_.quic_connection_options.begin();
314 it != params_.quic_connection_options.end(); ++it) { 314 it != params_.quic_connection_options.end(); ++it) {
315 connection_options->AppendString("'" + QuicUtils::TagToString(*it) + "'"); 315 connection_options->AppendString("'" + QuicUtils::TagToString(*it) + "'");
316 } 316 }
317 dict->Set("connection_options", std::move(connection_options)); 317 dict->Set("connection_options", std::move(connection_options));
318 dict->SetString("origin_to_force_quic_on", 318
319 params_.origin_to_force_quic_on.ToString()); 319 scoped_ptr<base::ListValue> origins_to_force_quic_on(new base::ListValue);
320 for (const auto& origin : params_.origins_to_force_quic_on) {
321 origins_to_force_quic_on->AppendString("'" + origin.ToString() + "'");
322 }
323 dict->Set("origins_to_force_quic_on", std::move(origins_to_force_quic_on));
324
320 dict->SetDouble("load_server_info_timeout_srtt_multiplier", 325 dict->SetDouble("load_server_info_timeout_srtt_multiplier",
321 params_.quic_load_server_info_timeout_srtt_multiplier); 326 params_.quic_load_server_info_timeout_srtt_multiplier);
322 dict->SetBoolean("enable_connection_racing", 327 dict->SetBoolean("enable_connection_racing",
323 params_.quic_enable_connection_racing); 328 params_.quic_enable_connection_racing);
324 dict->SetBoolean("disable_disk_cache", params_.quic_disable_disk_cache); 329 dict->SetBoolean("disable_disk_cache", params_.quic_disable_disk_cache);
325 dict->SetBoolean("prefer_aes", params_.quic_prefer_aes); 330 dict->SetBoolean("prefer_aes", params_.quic_prefer_aes);
326 dict->SetInteger("max_number_of_lossy_connections", 331 dict->SetInteger("max_number_of_lossy_connections",
327 params_.quic_max_number_of_lossy_connections); 332 params_.quic_max_number_of_lossy_connections);
328 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold); 333 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold);
329 dict->SetBoolean("delay_tcp_race", params_.quic_delay_tcp_race); 334 dict->SetBoolean("delay_tcp_race", params_.quic_delay_tcp_race);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 case WEBSOCKET_SOCKET_POOL: 386 case WEBSOCKET_SOCKET_POOL:
382 return websocket_socket_pool_manager_.get(); 387 return websocket_socket_pool_manager_.get();
383 default: 388 default:
384 NOTREACHED(); 389 NOTREACHED();
385 break; 390 break;
386 } 391 }
387 return NULL; 392 return NULL;
388 } 393 }
389 394
390 } // namespace net 395 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698