OLD | NEW |
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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 PrefService* local_state, | 350 PrefService* local_state, |
351 policy::PolicyService* policy_service, | 351 policy::PolicyService* policy_service, |
352 net_log::ChromeNetLog* net_log, | 352 net_log::ChromeNetLog* net_log, |
353 extensions::EventRouterForwarder* extension_event_router_forwarder) | 353 extensions::EventRouterForwarder* extension_event_router_forwarder) |
354 : net_log_(net_log), | 354 : net_log_(net_log), |
355 #if BUILDFLAG(ENABLE_EXTENSIONS) | 355 #if BUILDFLAG(ENABLE_EXTENSIONS) |
356 extension_event_router_forwarder_(extension_event_router_forwarder), | 356 extension_event_router_forwarder_(extension_event_router_forwarder), |
357 #endif | 357 #endif |
358 globals_(nullptr), | 358 globals_(nullptr), |
359 is_quic_allowed_by_policy_(true), | 359 is_quic_allowed_by_policy_(true), |
360 http_09_on_non_default_ports_enabled_(true), | 360 http_09_on_non_default_ports_enabled_(false), |
361 creation_time_(base::TimeTicks::Now()), | 361 creation_time_(base::TimeTicks::Now()), |
362 weak_factory_(this) { | 362 weak_factory_(this) { |
363 scoped_refptr<base::SingleThreadTaskRunner> io_thread_proxy = | 363 scoped_refptr<base::SingleThreadTaskRunner> io_thread_proxy = |
364 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); | 364 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); |
365 auth_schemes_ = local_state->GetString(prefs::kAuthSchemes); | 365 auth_schemes_ = local_state->GetString(prefs::kAuthSchemes); |
366 negotiate_disable_cname_lookup_.Init( | 366 negotiate_disable_cname_lookup_.Init( |
367 prefs::kDisableAuthNegotiateCnameLookup, local_state, | 367 prefs::kDisableAuthNegotiateCnameLookup, local_state, |
368 base::Bind(&IOThread::UpdateNegotiateDisableCnameLookup, | 368 base::Bind(&IOThread::UpdateNegotiateDisableCnameLookup, |
369 base::Unretained(this))); | 369 base::Unretained(this))); |
370 negotiate_disable_cname_lookup_.MoveToThread(io_thread_proxy); | 370 negotiate_disable_cname_lookup_.MoveToThread(io_thread_proxy); |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 | 1115 |
1116 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the | 1116 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the |
1117 // system URLRequestContext too. There's no reason this should be tied to a | 1117 // system URLRequestContext too. There's no reason this should be tied to a |
1118 // profile. | 1118 // profile. |
1119 return context; | 1119 return context; |
1120 } | 1120 } |
1121 | 1121 |
1122 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { | 1122 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { |
1123 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); | 1123 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); |
1124 } | 1124 } |
OLD | NEW |