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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 content::URLRequestInterceptorScopedVector request_interceptors) const { | 426 content::URLRequestInterceptorScopedVector request_interceptors) const { |
427 net::URLRequestContext* main_context = main_request_context(); | 427 net::URLRequestContext* main_context = main_request_context(); |
428 | 428 |
429 IOThread* const io_thread = profile_params->io_thread; | 429 IOThread* const io_thread = profile_params->io_thread; |
430 IOThread::Globals* const io_thread_globals = io_thread->globals(); | 430 IOThread::Globals* const io_thread_globals = io_thread->globals(); |
431 | 431 |
432 #if defined(SPDY_PROXY_AUTH_ORIGIN) | 432 #if defined(SPDY_PROXY_AUTH_ORIGIN) |
433 data_reduction_proxy_auth_request_handler_.reset( | 433 data_reduction_proxy_auth_request_handler_.reset( |
434 new data_reduction_proxy::DataReductionProxyAuthRequestHandler( | 434 new data_reduction_proxy::DataReductionProxyAuthRequestHandler( |
435 DataReductionProxyChromeSettings::GetClient(), | 435 DataReductionProxyChromeSettings::GetClient(), |
436 DataReductionProxyChromeSettings::GetBuildAndPatchNumber(), | 436 DataReductionProxyChromeSettings::GetBuildNumber(), |
| 437 DataReductionProxyChromeSettings::GetPatchNumber(), |
437 data_reduction_proxy_params_.get(), | 438 data_reduction_proxy_params_.get(), |
438 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); | 439 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); |
439 data_reduction_proxy_usage_stats_.reset( | 440 data_reduction_proxy_usage_stats_.reset( |
440 new data_reduction_proxy::DataReductionProxyUsageStats( | 441 new data_reduction_proxy::DataReductionProxyUsageStats( |
441 data_reduction_proxy_params_.get(), | 442 data_reduction_proxy_params_.get(), |
442 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI))); | 443 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI))); |
443 data_reduction_proxy_usage_stats_->set_unavailable_callback( | 444 data_reduction_proxy_usage_stats_->set_unavailable_callback( |
444 data_reduction_proxy_unavailable_callback_); | 445 data_reduction_proxy_unavailable_callback_); |
445 | 446 |
446 | 447 |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 const base::Closure& completion) { | 836 const base::Closure& completion) { |
836 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 837 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
837 DCHECK(initialized()); | 838 DCHECK(initialized()); |
838 | 839 |
839 DCHECK(transport_security_state()); | 840 DCHECK(transport_security_state()); |
840 // Completes synchronously. | 841 // Completes synchronously. |
841 transport_security_state()->DeleteAllDynamicDataSince(time); | 842 transport_security_state()->DeleteAllDynamicDataSince(time); |
842 DCHECK(http_server_properties_manager_); | 843 DCHECK(http_server_properties_manager_); |
843 http_server_properties_manager_->Clear(completion); | 844 http_server_properties_manager_->Clear(completion); |
844 } | 845 } |
OLD | NEW |