| 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_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 | 1025 |
| 1026 main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli); | 1026 main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli); |
| 1027 | 1027 |
| 1028 std::unique_ptr<ChromeNetworkDelegate> network_delegate( | 1028 std::unique_ptr<ChromeNetworkDelegate> network_delegate( |
| 1029 new ChromeNetworkDelegate( | 1029 new ChromeNetworkDelegate( |
| 1030 #if defined(ENABLE_EXTENSIONS) | 1030 #if defined(ENABLE_EXTENSIONS) |
| 1031 io_thread_globals->extension_event_router_forwarder.get(), | 1031 io_thread_globals->extension_event_router_forwarder.get(), |
| 1032 #else | 1032 #else |
| 1033 NULL, | 1033 NULL, |
| 1034 #endif | 1034 #endif |
| 1035 &enable_referrers_, io_thread->GetMetricsDataUseForwarder())); | 1035 &enable_referrers_)); |
| 1036 #if defined(ENABLE_EXTENSIONS) | 1036 #if defined(ENABLE_EXTENSIONS) |
| 1037 network_delegate->set_extension_info_map( | 1037 network_delegate->set_extension_info_map( |
| 1038 profile_params_->extension_info_map.get()); | 1038 profile_params_->extension_info_map.get()); |
| 1039 if (!command_line.HasSwitch(switches::kDisableExtensionsHttpThrottling)) { | 1039 if (!command_line.HasSwitch(switches::kDisableExtensionsHttpThrottling)) { |
| 1040 extension_throttle_manager_.reset( | 1040 extension_throttle_manager_.reset( |
| 1041 new extensions::ExtensionThrottleManager()); | 1041 new extensions::ExtensionThrottleManager()); |
| 1042 } | 1042 } |
| 1043 #endif | 1043 #endif |
| 1044 | 1044 |
| 1045 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get()); | 1045 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get()); |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1354 void ProfileIOData::SetCookieSettingsForTesting( | 1354 void ProfileIOData::SetCookieSettingsForTesting( |
| 1355 content_settings::CookieSettings* cookie_settings) { | 1355 content_settings::CookieSettings* cookie_settings) { |
| 1356 DCHECK(!cookie_settings_.get()); | 1356 DCHECK(!cookie_settings_.get()); |
| 1357 cookie_settings_ = cookie_settings; | 1357 cookie_settings_ = cookie_settings; |
| 1358 } | 1358 } |
| 1359 | 1359 |
| 1360 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( | 1360 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( |
| 1361 const GURL& url) const { | 1361 const GURL& url) const { |
| 1362 return url_blacklist_manager_->GetURLBlacklistState(url); | 1362 return url_blacklist_manager_->GetURLBlacklistState(url); |
| 1363 } | 1363 } |
| OLD | NEW |