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

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

Issue 7289006: Basic HTTP pipelining support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix races Created 9 years, 2 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 &value); 286 &value);
287 net::SpdySessionPool::set_max_sessions_per_domain(value); 287 net::SpdySessionPool::set_max_sessions_per_domain(value);
288 } 288 }
289 289
290 SetDnsCertProvenanceCheckerFactory(CreateChromeDnsCertProvenanceChecker); 290 SetDnsCertProvenanceCheckerFactory(CreateChromeDnsCertProvenanceChecker);
291 291
292 if (parsed_command_line.HasSwitch(switches::kEnableWebSocketOverSpdy)) { 292 if (parsed_command_line.HasSwitch(switches::kEnableWebSocketOverSpdy)) {
293 // Enable WebSocket over SPDY. 293 // Enable WebSocket over SPDY.
294 net::WebSocketJob::set_websocket_over_spdy_enabled(true); 294 net::WebSocketJob::set_websocket_over_spdy_enabled(true);
295 } 295 }
296
297 if (parsed_command_line.HasSwitch(switches::kEnableHttpPipelining))
298 net::HttpStreamFactory::set_http_pipelining_enabled(true);
296 } 299 }
297 300
298 void InitializeURLRequestThrottlerManager(net::NetLog* net_log) { 301 void InitializeURLRequestThrottlerManager(net::NetLog* net_log) {
299 net::URLRequestThrottlerManager::GetInstance()->set_enable_thread_checks( 302 net::URLRequestThrottlerManager::GetInstance()->set_enable_thread_checks(
300 true); 303 true);
301 304
302 // TODO(joi): Passing the NetLog here is temporary; once I switch the 305 // TODO(joi): Passing the NetLog here is temporary; once I switch the
303 // URLRequestThrottlerManager to be part of the URLRequestContext it will 306 // URLRequestThrottlerManager to be part of the URLRequestContext it will
304 // come from there. Doing it this way for now (2011/5/12) to try to fail 307 // come from there. Doing it this way for now (2011/5/12) to try to fail
305 // fast in case A/B experiment gives unexpected results. 308 // fast in case A/B experiment gives unexpected results.
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after
2090 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && 2093 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) &&
2091 (pre_read == "0" || pre_read == "1")) { 2094 (pre_read == "0" || pre_read == "1")) {
2092 std::string uma_name(name); 2095 std::string uma_name(name);
2093 uma_name += "_PreRead"; 2096 uma_name += "_PreRead";
2094 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; 2097 uma_name += pre_read == "1" ? "Enabled" : "Disabled";
2095 AddPreReadHistogramTime(uma_name.c_str(), time); 2098 AddPreReadHistogramTime(uma_name.c_str(), time);
2096 } 2099 }
2097 #endif 2100 #endif
2098 #endif 2101 #endif
2099 } 2102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698