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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 11416058: Integrating the QuicStreamFactory into the network stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix static initializer Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/common/chrome_switches.h » ('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 "chrome/browser/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 if (command_line.HasSwitch(switches::kEnableHttpPipelining)) 506 if (command_line.HasSwitch(switches::kEnableHttpPipelining))
507 globals_->http_pipelining_enabled = true; 507 globals_->http_pipelining_enabled = true;
508 if (command_line.HasSwitch(switches::kTestingFixedHttpPort)) { 508 if (command_line.HasSwitch(switches::kTestingFixedHttpPort)) {
509 globals_->testing_fixed_http_port = 509 globals_->testing_fixed_http_port =
510 GetSwitchValueAsInt(command_line, switches::kTestingFixedHttpPort); 510 GetSwitchValueAsInt(command_line, switches::kTestingFixedHttpPort);
511 } 511 }
512 if (command_line.HasSwitch(switches::kTestingFixedHttpsPort)) { 512 if (command_line.HasSwitch(switches::kTestingFixedHttpsPort)) {
513 globals_->testing_fixed_https_port = 513 globals_->testing_fixed_https_port =
514 GetSwitchValueAsInt(command_line, switches::kTestingFixedHttpsPort); 514 GetSwitchValueAsInt(command_line, switches::kTestingFixedHttpsPort);
515 } 515 }
516 if (command_line.HasSwitch(switches::kOriginPortToForceQuicOn)) {
517 globals_->origin_port_to_force_quic_on.set(
518 GetSwitchValueAsInt(command_line,
519 switches::kOriginPortToForceQuicOn));
520 }
516 521
517 InitializeNetworkOptions(command_line); 522 InitializeNetworkOptions(command_line);
518 523
519 net::HttpNetworkSession::Params session_params; 524 net::HttpNetworkSession::Params session_params;
520 InitializeNetworkSessionParams(&session_params); 525 InitializeNetworkSessionParams(&session_params);
521 session_params.net_log = net_log_; 526 session_params.net_log = net_log_;
522 session_params.proxy_service = 527 session_params.proxy_service =
523 globals_->proxy_script_fetcher_proxy_service.get(); 528 globals_->proxy_script_fetcher_proxy_service.get();
524 529
525 scoped_refptr<net::HttpNetworkSession> network_session( 530 scoped_refptr<net::HttpNetworkSession> network_session(
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 globals_->enable_spdy_ip_pooling.CopyToIfSet( 813 globals_->enable_spdy_ip_pooling.CopyToIfSet(
809 &params->enable_spdy_ip_pooling); 814 &params->enable_spdy_ip_pooling);
810 globals_->enable_spdy_credential_frames.CopyToIfSet( 815 globals_->enable_spdy_credential_frames.CopyToIfSet(
811 &params->enable_spdy_credential_frames); 816 &params->enable_spdy_credential_frames);
812 globals_->enable_spdy_compression.CopyToIfSet( 817 globals_->enable_spdy_compression.CopyToIfSet(
813 &params->enable_spdy_compression); 818 &params->enable_spdy_compression);
814 globals_->enable_spdy_ping_based_connection_checking.CopyToIfSet( 819 globals_->enable_spdy_ping_based_connection_checking.CopyToIfSet(
815 &params->enable_spdy_ping_based_connection_checking); 820 &params->enable_spdy_ping_based_connection_checking);
816 globals_->spdy_default_protocol.CopyToIfSet( 821 globals_->spdy_default_protocol.CopyToIfSet(
817 &params->spdy_default_protocol); 822 &params->spdy_default_protocol);
823 globals_->origin_port_to_force_quic_on.CopyToIfSet(
824 &params->origin_port_to_force_quic_on);
818 } 825 }
819 826
820 net::SSLConfigService* IOThread::GetSSLConfigService() { 827 net::SSLConfigService* IOThread::GetSSLConfigService() {
821 return ssl_config_service_manager_->Get(); 828 return ssl_config_service_manager_->Get();
822 } 829 }
823 830
824 void IOThread::ChangedToOnTheRecordOnIOThread() { 831 void IOThread::ChangedToOnTheRecordOnIOThread() {
825 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 832 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
826 833
827 // Clear the host cache to avoid showing entries from the OTR session 834 // Clear the host cache to avoid showing entries from the OTR session
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 globals_->system_request_context.reset( 887 globals_->system_request_context.reset(
881 ConstructSystemRequestContext(globals_, net_log_)); 888 ConstructSystemRequestContext(globals_, net_log_));
882 889
883 sdch_manager_->set_sdch_fetcher( 890 sdch_manager_->set_sdch_fetcher(
884 new SdchDictionaryFetcher(system_url_request_context_getter_.get())); 891 new SdchDictionaryFetcher(system_url_request_context_getter_.get()));
885 } 892 }
886 893
887 void IOThread::UpdateDnsClientEnabled() { 894 void IOThread::UpdateDnsClientEnabled() {
888 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_); 895 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_);
889 } 896 }
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698