| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 IOThread::ShouldEnableQuicForDataReductionProxy(); | 191 IOThread::ShouldEnableQuicForDataReductionProxy(); |
| 192 | 192 |
| 193 io_data_->set_data_reduction_proxy_io_data( | 193 io_data_->set_data_reduction_proxy_io_data( |
| 194 CreateDataReductionProxyChromeIOData( | 194 CreateDataReductionProxyChromeIOData( |
| 195 g_browser_process->io_thread()->net_log(), profile_->GetPrefs(), | 195 g_browser_process->io_thread()->net_log(), profile_->GetPrefs(), |
| 196 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 196 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
| 197 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 197 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
| 198 enable_quic_for_data_reduction_proxy) | 198 enable_quic_for_data_reduction_proxy) |
| 199 .Pass()); | 199 .Pass()); |
| 200 | 200 |
| 201 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_)-> | 201 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_) |
| 202 InitDataReductionProxySettings( | 202 ->InitDataReductionProxySettings( |
| 203 io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(), | 203 io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(), |
| 204 profile_->GetRequestContext(), | 204 profile_->GetRequestContext(), profile_path.value(), |
| 205 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)); | 205 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
| 206 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)); |
| 206 } | 207 } |
| 207 | 208 |
| 208 content::ResourceContext* | 209 content::ResourceContext* |
| 209 ProfileImplIOData::Handle::GetResourceContext() const { | 210 ProfileImplIOData::Handle::GetResourceContext() const { |
| 210 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 211 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 211 LazyInitialize(); | 212 LazyInitialize(); |
| 212 return GetResourceContextNoInit(); | 213 return GetResourceContextNoInit(); |
| 213 } | 214 } |
| 214 | 215 |
| 215 content::ResourceContext* | 216 content::ResourceContext* |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 const base::Closure& completion) { | 812 const base::Closure& completion) { |
| 812 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 813 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 813 DCHECK(initialized()); | 814 DCHECK(initialized()); |
| 814 | 815 |
| 815 DCHECK(transport_security_state()); | 816 DCHECK(transport_security_state()); |
| 816 // Completes synchronously. | 817 // Completes synchronously. |
| 817 transport_security_state()->DeleteAllDynamicDataSince(time); | 818 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 818 DCHECK(http_server_properties_manager_); | 819 DCHECK(http_server_properties_manager_); |
| 819 http_server_properties_manager_->Clear(completion); | 820 http_server_properties_manager_->Clear(completion); |
| 820 } | 821 } |
| OLD | NEW |