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

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

Issue 2651753002: Enable HTTP/0.9 on non-standard ports by default (Closed)
Patch Set: Fix test Created 3 years, 10 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 | « no previous file | chrome/browser/net/errorpage_browsertest.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 "chrome/browser/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 PrefService* local_state, 343 PrefService* local_state,
344 policy::PolicyService* policy_service, 344 policy::PolicyService* policy_service,
345 net_log::ChromeNetLog* net_log, 345 net_log::ChromeNetLog* net_log,
346 extensions::EventRouterForwarder* extension_event_router_forwarder) 346 extensions::EventRouterForwarder* extension_event_router_forwarder)
347 : net_log_(net_log), 347 : net_log_(net_log),
348 #if BUILDFLAG(ENABLE_EXTENSIONS) 348 #if BUILDFLAG(ENABLE_EXTENSIONS)
349 extension_event_router_forwarder_(extension_event_router_forwarder), 349 extension_event_router_forwarder_(extension_event_router_forwarder),
350 #endif 350 #endif
351 globals_(nullptr), 351 globals_(nullptr),
352 is_quic_allowed_by_policy_(true), 352 is_quic_allowed_by_policy_(true),
353 http_09_on_non_default_ports_enabled_(false), 353 http_09_on_non_default_ports_enabled_(true),
354 creation_time_(base::TimeTicks::Now()), 354 creation_time_(base::TimeTicks::Now()),
355 weak_factory_(this) { 355 weak_factory_(this) {
356 scoped_refptr<base::SingleThreadTaskRunner> io_thread_proxy = 356 scoped_refptr<base::SingleThreadTaskRunner> io_thread_proxy =
357 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); 357 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
358 auth_schemes_ = local_state->GetString(prefs::kAuthSchemes); 358 auth_schemes_ = local_state->GetString(prefs::kAuthSchemes);
359 negotiate_disable_cname_lookup_.Init( 359 negotiate_disable_cname_lookup_.Init(
360 prefs::kDisableAuthNegotiateCnameLookup, local_state, 360 prefs::kDisableAuthNegotiateCnameLookup, local_state,
361 base::Bind(&IOThread::UpdateNegotiateDisableCnameLookup, 361 base::Bind(&IOThread::UpdateNegotiateDisableCnameLookup,
362 base::Unretained(this))); 362 base::Unretained(this)));
363 negotiate_disable_cname_lookup_.MoveToThread(io_thread_proxy); 363 negotiate_disable_cname_lookup_.MoveToThread(io_thread_proxy);
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 1099
1100 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the 1100 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the
1101 // system URLRequestContext too. There's no reason this should be tied to a 1101 // system URLRequestContext too. There's no reason this should be tied to a
1102 // profile. 1102 // profile.
1103 return context; 1103 return context;
1104 } 1104 }
1105 1105
1106 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { 1106 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() {
1107 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); 1107 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread);
1108 } 1108 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/errorpage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698