OLD | NEW |
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 &value); | 280 &value); |
281 net::SpdySessionPool::set_max_sessions_per_domain(value); | 281 net::SpdySessionPool::set_max_sessions_per_domain(value); |
282 } | 282 } |
283 | 283 |
284 SetDnsCertProvenanceCheckerFactory(CreateChromeDnsCertProvenanceChecker); | 284 SetDnsCertProvenanceCheckerFactory(CreateChromeDnsCertProvenanceChecker); |
285 | 285 |
286 if (parsed_command_line.HasSwitch(switches::kEnableWebSocketOverSpdy)) { | 286 if (parsed_command_line.HasSwitch(switches::kEnableWebSocketOverSpdy)) { |
287 // Enable WebSocket over SPDY. | 287 // Enable WebSocket over SPDY. |
288 net::WebSocketJob::set_websocket_over_spdy_enabled(true); | 288 net::WebSocketJob::set_websocket_over_spdy_enabled(true); |
289 } | 289 } |
290 | |
291 if (parsed_command_line.HasSwitch(switches::kEnableHttpPipelining)) | |
292 net::HttpStreamFactory::set_http_pipelining_enabled(true); | |
293 } | 290 } |
294 | 291 |
295 void InitializeURLRequestThrottlerManager(net::NetLog* net_log) { | 292 void InitializeURLRequestThrottlerManager(net::NetLog* net_log) { |
296 net::URLRequestThrottlerManager::GetInstance()->set_enable_thread_checks( | 293 net::URLRequestThrottlerManager::GetInstance()->set_enable_thread_checks( |
297 true); | 294 true); |
298 | 295 |
299 // TODO(joi): Passing the NetLog here is temporary; once I switch the | 296 // TODO(joi): Passing the NetLog here is temporary; once I switch the |
300 // URLRequestThrottlerManager to be part of the URLRequestContext it will | 297 // URLRequestThrottlerManager to be part of the URLRequestContext it will |
301 // come from there. Doing it this way for now (2011/5/12) to try to fail | 298 // come from there. Doing it this way for now (2011/5/12) to try to fail |
302 // fast in case A/B experiment gives unexpected results. | 299 // fast in case A/B experiment gives unexpected results. |
(...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2140 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && | 2137 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && |
2141 (pre_read == "0" || pre_read == "1")) { | 2138 (pre_read == "0" || pre_read == "1")) { |
2142 std::string uma_name(name); | 2139 std::string uma_name(name); |
2143 uma_name += "_PreRead"; | 2140 uma_name += "_PreRead"; |
2144 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; | 2141 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; |
2145 AddPreReadHistogramTime(uma_name.c_str(), time); | 2142 AddPreReadHistogramTime(uma_name.c_str(), time); |
2146 } | 2143 } |
2147 #endif | 2144 #endif |
2148 #endif | 2145 #endif |
2149 } | 2146 } |
OLD | NEW |