Chromium Code Reviews| 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_) |
|
jeremyim
2015/06/30 01:59:18
nit: leave -> on the previous line since git cl fo
Not at Google. Contact bengr
2015/07/01 17:13:49
"->" goes back to new line everytime I run git cl
| |
| 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, |
| 205 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)); | 205 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
| 206 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)); | |
|
michaeln
2015/06/29 23:19:30
Please use the default blocking pool setup by the
Not at Google. Contact bengr
2015/07/01 17:13:49
Done. Thanks for the explanation. I had misunderst
| |
| 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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 804 const base::Closure& completion) { | 805 const base::Closure& completion) { |
| 805 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 806 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 806 DCHECK(initialized()); | 807 DCHECK(initialized()); |
| 807 | 808 |
| 808 DCHECK(transport_security_state()); | 809 DCHECK(transport_security_state()); |
| 809 // Completes synchronously. | 810 // Completes synchronously. |
| 810 transport_security_state()->DeleteAllDynamicDataSince(time); | 811 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 811 DCHECK(http_server_properties_manager_); | 812 DCHECK(http_server_properties_manager_); |
| 812 http_server_properties_manager_->Clear(completion); | 813 http_server_properties_manager_->Clear(completion); |
| 813 } | 814 } |
| OLD | NEW |