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

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

Issue 14189003: [SPDY] Incorporate latest framing changes from HTTP2 into SPDY 4 as SPDY 4a2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/about_flags.cc ('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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 globals_->max_spdy_concurrent_streams_limit.set( 650 globals_->max_spdy_concurrent_streams_limit.set(
651 GetSwitchValueAsInt(command_line, switches::kMaxSpdyConcurrentStreams)); 651 GetSwitchValueAsInt(command_line, switches::kMaxSpdyConcurrentStreams));
652 } 652 }
653 if (command_line.HasSwitch(switches::kIgnoreUrlFetcherCertRequests)) 653 if (command_line.HasSwitch(switches::kIgnoreUrlFetcherCertRequests))
654 net::URLFetcher::SetIgnoreCertificateRequests(true); 654 net::URLFetcher::SetIgnoreCertificateRequests(true);
655 655
656 if (command_line.HasSwitch(switches::kUseSpdy)) { 656 if (command_line.HasSwitch(switches::kUseSpdy)) {
657 std::string spdy_mode = 657 std::string spdy_mode =
658 command_line.GetSwitchValueASCII(switches::kUseSpdy); 658 command_line.GetSwitchValueASCII(switches::kUseSpdy);
659 EnableSpdy(spdy_mode); 659 EnableSpdy(spdy_mode);
660 } else if (command_line.HasSwitch(switches::kEnableSpdy4a1)) {
661 net::HttpStreamFactory::EnableNpnSpdy4a1();
662 } else if (command_line.HasSwitch(switches::kDisableSpdy31)) { 660 } else if (command_line.HasSwitch(switches::kDisableSpdy31)) {
663 net::HttpStreamFactory::EnableNpnSpdy3(); 661 net::HttpStreamFactory::EnableNpnSpdy3();
664 } else if (command_line.HasSwitch(switches::kEnableNpn)) { 662 } else if (command_line.HasSwitch(switches::kEnableNpn)) {
665 net::HttpStreamFactory::EnableNpnSpdy(); 663 net::HttpStreamFactory::EnableNpnSpdy();
666 } else if (command_line.HasSwitch(switches::kEnableNpnHttpOnly)) { 664 } else if (command_line.HasSwitch(switches::kEnableNpnHttpOnly)) {
667 net::HttpStreamFactory::EnableNpnHttpOnly(); 665 net::HttpStreamFactory::EnableNpnHttpOnly();
668 } else { 666 } else {
669 // Use SPDY/3.1 by default. 667 // Use SPDY/3.1 by default.
670 net::HttpStreamFactory::EnableNpnSpdy31(); 668 net::HttpStreamFactory::EnableNpnSpdy31();
671 } 669 }
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 globals_->system_request_context.reset( 911 globals_->system_request_context.reset(
914 ConstructSystemRequestContext(globals_, net_log_)); 912 ConstructSystemRequestContext(globals_, net_log_));
915 913
916 sdch_manager_->set_sdch_fetcher( 914 sdch_manager_->set_sdch_fetcher(
917 new SdchDictionaryFetcher(system_url_request_context_getter_.get())); 915 new SdchDictionaryFetcher(system_url_request_context_getter_.get()));
918 } 916 }
919 917
920 void IOThread::UpdateDnsClientEnabled() { 918 void IOThread::UpdateDnsClientEnabled() {
921 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_); 919 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_);
922 } 920 }
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698