| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |