| 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/profiles/profile_impl_io_data.h" | 5 #include "chrome/browser/profiles/profile_impl_io_data.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 if (io_data_->domain_reliability_monitor_) | 181 if (io_data_->domain_reliability_monitor_) |
| 182 io_data_->domain_reliability_monitor_->MoveToNetworkThread(); | 182 io_data_->domain_reliability_monitor_->MoveToNetworkThread(); |
| 183 | 183 |
| 184 // TODO(tbansal): Move this to IO thread once the data reduction proxy | 184 // TODO(tbansal): Move this to IO thread once the data reduction proxy |
| 185 // params are unified into a single object. | 185 // params are unified into a single object. |
| 186 bool enable_quic_for_data_reduction_proxy = | 186 bool enable_quic_for_data_reduction_proxy = |
| 187 IOThread::ShouldEnableQuicForDataReductionProxy(); | 187 IOThread::ShouldEnableQuicForDataReductionProxy(); |
| 188 | 188 |
| 189 io_data_->set_data_reduction_proxy_io_data( | 189 io_data_->set_data_reduction_proxy_io_data( |
| 190 CreateDataReductionProxyChromeIOData( | 190 CreateDataReductionProxyChromeIOData( |
| 191 profile_->GetRequestContext(), |
| 191 g_browser_process->io_thread()->net_log(), profile_->GetPrefs(), | 192 g_browser_process->io_thread()->net_log(), profile_->GetPrefs(), |
| 192 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 193 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
| 193 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 194 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
| 194 enable_quic_for_data_reduction_proxy) | 195 enable_quic_for_data_reduction_proxy) |
| 195 .Pass()); | 196 .Pass()); |
| 196 | 197 |
| 197 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_)-> | 198 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_)-> |
| 198 InitDataReductionProxySettings( | 199 InitDataReductionProxySettings( |
| 199 io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(), | 200 io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(), |
| 200 profile_->GetRequestContext(), | |
| 201 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)); | 201 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)); |
| 202 } | 202 } |
| 203 | 203 |
| 204 content::ResourceContext* | 204 content::ResourceContext* |
| 205 ProfileImplIOData::Handle::GetResourceContext() const { | 205 ProfileImplIOData::Handle::GetResourceContext() const { |
| 206 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 206 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 207 LazyInitialize(); | 207 LazyInitialize(); |
| 208 return GetResourceContextNoInit(); | 208 return GetResourceContextNoInit(); |
| 209 } | 209 } |
| 210 | 210 |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 const base::Closure& completion) { | 805 const base::Closure& completion) { |
| 806 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 806 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 807 DCHECK(initialized()); | 807 DCHECK(initialized()); |
| 808 | 808 |
| 809 DCHECK(transport_security_state()); | 809 DCHECK(transport_security_state()); |
| 810 // Completes synchronously. | 810 // Completes synchronously. |
| 811 transport_security_state()->DeleteAllDynamicDataSince(time); | 811 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 812 DCHECK(http_server_properties_manager_); | 812 DCHECK(http_server_properties_manager_); |
| 813 http_server_properties_manager_->Clear(completion); | 813 http_server_properties_manager_->Clear(completion); |
| 814 } | 814 } |
| OLD | NEW |