| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
| 17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
| 19 #include "chrome/browser/content_settings/cookie_settings.h" | 19 #include "chrome/browser/content_settings/cookie_settings.h" |
| 20 #include "chrome/browser/content_settings/host_content_settings_map.h" | 20 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 21 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 21 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 22 #include "chrome/browser/download/download_service.h" | 22 #include "chrome/browser/download/download_service.h" |
| 23 #include "chrome/browser/download/download_service_factory.h" | 23 #include "chrome/browser/download/download_service_factory.h" |
| 24 #include "chrome/browser/extensions/extension_info_map.h" | 24 #include "chrome/browser/extensions/extension_info_map.h" |
| 25 #include "chrome/browser/extensions/extension_protocols.h" | 25 #include "chrome/browser/extensions/extension_protocols.h" |
| 26 #include "chrome/browser/extensions/extension_system.h" |
| 27 #include "chrome/browser/extensions/extension_system_factory.h" |
| 26 #include "chrome/browser/io_thread.h" | 28 #include "chrome/browser/io_thread.h" |
| 27 #include "chrome/browser/media/media_internals.h" | 29 #include "chrome/browser/media/media_internals.h" |
| 28 #include "chrome/browser/net/chrome_cookie_notification_details.h" | 30 #include "chrome/browser/net/chrome_cookie_notification_details.h" |
| 29 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" | 31 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" |
| 30 #include "chrome/browser/net/chrome_net_log.h" | 32 #include "chrome/browser/net/chrome_net_log.h" |
| 31 #include "chrome/browser/net/chrome_network_delegate.h" | 33 #include "chrome/browser/net/chrome_network_delegate.h" |
| 32 #include "chrome/browser/net/proxy_service_factory.h" | 34 #include "chrome/browser/net/proxy_service_factory.h" |
| 33 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 35 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
| 34 #include "chrome/browser/policy/url_blacklist_manager.h" | 36 #include "chrome/browser/policy/url_blacklist_manager.h" |
| 35 #include "chrome/browser/prefs/pref_service.h" | 37 #include "chrome/browser/prefs/pref_service.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 params->io_thread = g_browser_process->io_thread(); | 219 params->io_thread = g_browser_process->io_thread(); |
| 218 | 220 |
| 219 params->host_content_settings_map = profile->GetHostContentSettingsMap(); | 221 params->host_content_settings_map = profile->GetHostContentSettingsMap(); |
| 220 params->cookie_settings = CookieSettings::Factory::GetForProfile(profile); | 222 params->cookie_settings = CookieSettings::Factory::GetForProfile(profile); |
| 221 params->ssl_config_service = profile->GetSSLConfigService(); | 223 params->ssl_config_service = profile->GetSSLConfigService(); |
| 222 base::Callback<Profile*(void)> profile_getter = | 224 base::Callback<Profile*(void)> profile_getter = |
| 223 base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(), | 225 base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(), |
| 224 profile); | 226 profile); |
| 225 params->cookie_monster_delegate = | 227 params->cookie_monster_delegate = |
| 226 new ChromeCookieMonsterDelegate(profile_getter); | 228 new ChromeCookieMonsterDelegate(profile_getter); |
| 227 params->extension_info_map = profile->GetExtensionInfoMap(); | 229 params->extension_info_map = |
| 230 ExtensionSystemFactory::GetForProfile(profile)->info_map(); |
| 228 | 231 |
| 229 #if defined(ENABLE_NOTIFICATIONS) | 232 #if defined(ENABLE_NOTIFICATIONS) |
| 230 params->notification_service = | 233 params->notification_service = |
| 231 DesktopNotificationServiceFactory::GetForProfile(profile); | 234 DesktopNotificationServiceFactory::GetForProfile(profile); |
| 232 #endif | 235 #endif |
| 233 | 236 |
| 234 params->protocol_handler_registry = profile->GetProtocolHandlerRegistry(); | 237 params->protocol_handler_registry = profile->GetProtocolHandlerRegistry(); |
| 235 | 238 |
| 236 ChromeProxyConfigService* proxy_config_service = | 239 ChromeProxyConfigService* proxy_config_service = |
| 237 ProxyServiceFactory::CreateProxyConfigService(true); | 240 ProxyServiceFactory::CreateProxyConfigService(true); |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 &resource_context_)); | 563 &resource_context_)); |
| 561 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); | 564 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); |
| 562 if (!posted) | 565 if (!posted) |
| 563 delete this; | 566 delete this; |
| 564 } | 567 } |
| 565 | 568 |
| 566 void ProfileIOData::set_origin_bound_cert_service( | 569 void ProfileIOData::set_origin_bound_cert_service( |
| 567 net::OriginBoundCertService* origin_bound_cert_service) const { | 570 net::OriginBoundCertService* origin_bound_cert_service) const { |
| 568 origin_bound_cert_service_.reset(origin_bound_cert_service); | 571 origin_bound_cert_service_.reset(origin_bound_cert_service); |
| 569 } | 572 } |
| OLD | NEW |