| 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 <memory> | 7 #include <memory> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #include "chrome/browser/previews/previews_service_factory.h" | 39 #include "chrome/browser/previews/previews_service_factory.h" |
| 40 #include "chrome/browser/profiles/profile.h" | 40 #include "chrome/browser/profiles/profile.h" |
| 41 #include "chrome/common/chrome_constants.h" | 41 #include "chrome/common/chrome_constants.h" |
| 42 #include "chrome/common/chrome_switches.h" | 42 #include "chrome/common/chrome_switches.h" |
| 43 #include "chrome/common/pref_names.h" | 43 #include "chrome/common/pref_names.h" |
| 44 #include "chrome/common/url_constants.h" | 44 #include "chrome/common/url_constants.h" |
| 45 #include "components/cookie_config/cookie_store_util.h" | 45 #include "components/cookie_config/cookie_store_util.h" |
| 46 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 46 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
| 47 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | 47 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" |
| 48 #include "components/data_reduction_proxy/core/browser/data_store_impl.h" | 48 #include "components/data_reduction_proxy/core/browser/data_store_impl.h" |
| 49 #include "components/data_use_measurement/content/data_use_measurement_util.h" |
| 50 #include "components/data_use_measurement/core/data_use_measurement.h" |
| 49 #include "components/domain_reliability/monitor.h" | 51 #include "components/domain_reliability/monitor.h" |
| 50 #include "components/net_log/chrome_net_log.h" | 52 #include "components/net_log/chrome_net_log.h" |
| 51 #include "components/prefs/json_pref_store.h" | 53 #include "components/prefs/json_pref_store.h" |
| 52 #include "components/prefs/pref_filter.h" | 54 #include "components/prefs/pref_filter.h" |
| 53 #include "components/prefs/pref_member.h" | 55 #include "components/prefs/pref_member.h" |
| 54 #include "components/prefs/pref_service.h" | 56 #include "components/prefs/pref_service.h" |
| 55 #include "components/previews/core/previews_io_data.h" | 57 #include "components/previews/core/previews_io_data.h" |
| 56 #include "content/public/browser/browser_thread.h" | 58 #include "content/public/browser/browser_thread.h" |
| 57 #include "content/public/browser/cookie_store_factory.h" | 59 #include "content/public/browser/cookie_store_factory.h" |
| 58 #include "content/public/browser/notification_service.h" | 60 #include "content/public/browser/notification_service.h" |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 479 |
| 478 main_context->set_transport_security_state(transport_security_state()); | 480 main_context->set_transport_security_state(transport_security_state()); |
| 479 main_context->set_ct_policy_enforcer( | 481 main_context->set_ct_policy_enforcer( |
| 480 io_thread_globals->ct_policy_enforcer.get()); | 482 io_thread_globals->ct_policy_enforcer.get()); |
| 481 | 483 |
| 482 main_context->set_net_log(io_thread->net_log()); | 484 main_context->set_net_log(io_thread->net_log()); |
| 483 | 485 |
| 484 main_context_storage->set_network_delegate( | 486 main_context_storage->set_network_delegate( |
| 485 data_reduction_proxy_io_data()->CreateNetworkDelegate( | 487 data_reduction_proxy_io_data()->CreateNetworkDelegate( |
| 486 io_thread_globals->data_use_ascriber->CreateNetworkDelegate( | 488 io_thread_globals->data_use_ascriber->CreateNetworkDelegate( |
| 487 std::move(chrome_network_delegate)), | 489 std::move(chrome_network_delegate), |
| 490 data_use_measurement::GetIsUserInitiatedRequestCallback(), |
| 491 io_thread->GetMetricsDataUseForwarder()), |
| 488 true)); | 492 true)); |
| 489 | 493 |
| 490 main_context->set_host_resolver( | 494 main_context->set_host_resolver( |
| 491 io_thread_globals->host_resolver.get()); | 495 io_thread_globals->host_resolver.get()); |
| 492 | 496 |
| 493 main_context->set_http_auth_handler_factory( | 497 main_context->set_http_auth_handler_factory( |
| 494 io_thread_globals->http_auth_handler_factory.get()); | 498 io_thread_globals->http_auth_handler_factory.get()); |
| 495 | 499 |
| 496 main_context->set_proxy_service(proxy_service()); | 500 main_context->set_proxy_service(proxy_service()); |
| 497 | 501 |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 const base::Closure& completion) { | 808 const base::Closure& completion) { |
| 805 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 809 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 806 DCHECK(initialized()); | 810 DCHECK(initialized()); |
| 807 | 811 |
| 808 DCHECK(transport_security_state()); | 812 DCHECK(transport_security_state()); |
| 809 // Completes synchronously. | 813 // Completes synchronously. |
| 810 transport_security_state()->DeleteAllDynamicDataSince(time); | 814 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 811 DCHECK(http_server_properties_manager_); | 815 DCHECK(http_server_properties_manager_); |
| 812 http_server_properties_manager_->Clear(completion); | 816 http_server_properties_manager_->Clear(completion); |
| 813 } | 817 } |
| OLD | NEW |