| 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 "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
| 19 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
| 20 #include "chrome/browser/content_settings/cookie_settings.h" | 20 #include "chrome/browser/content_settings/cookie_settings.h" |
| 21 #include "chrome/browser/content_settings/host_content_settings_map.h" | 21 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 23 #include "chrome/browser/download/download_service.h" | 23 #include "chrome/browser/download/download_service.h" |
| 24 #include "chrome/browser/download/download_service_factory.h" | 24 #include "chrome/browser/download/download_service_factory.h" |
| 25 #include "chrome/browser/extensions/extension_info_map.h" | 25 #include "chrome/browser/extensions/extension_info_map.h" |
| 26 #include "chrome/browser/extensions/extension_protocols.h" | 26 #include "chrome/browser/extensions/extension_protocols.h" |
| 27 #include "chrome/browser/extensions/extension_system.h" | 27 #include "chrome/browser/extensions/extension_system.h" |
| 28 #include "chrome/browser/extensions/extension_system_factory.h" | |
| 29 #include "chrome/browser/io_thread.h" | 28 #include "chrome/browser/io_thread.h" |
| 30 #include "chrome/browser/net/chrome_cookie_notification_details.h" | 29 #include "chrome/browser/net/chrome_cookie_notification_details.h" |
| 31 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" | 30 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" |
| 32 #include "chrome/browser/net/chrome_net_log.h" | 31 #include "chrome/browser/net/chrome_net_log.h" |
| 33 #include "chrome/browser/net/chrome_network_delegate.h" | 32 #include "chrome/browser/net/chrome_network_delegate.h" |
| 34 #include "chrome/browser/net/http_server_properties_manager.h" | 33 #include "chrome/browser/net/http_server_properties_manager.h" |
| 35 #include "chrome/browser/net/proxy_service_factory.h" | 34 #include "chrome/browser/net/proxy_service_factory.h" |
| 36 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 35 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
| 37 #include "chrome/browser/policy/url_blacklist_manager.h" | 36 #include "chrome/browser/policy/url_blacklist_manager.h" |
| 38 #include "chrome/browser/prefs/pref_service.h" | 37 #include "chrome/browser/prefs/pref_service.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 190 |
| 192 params->host_content_settings_map = profile->GetHostContentSettingsMap(); | 191 params->host_content_settings_map = profile->GetHostContentSettingsMap(); |
| 193 params->cookie_settings = CookieSettings::Factory::GetForProfile(profile); | 192 params->cookie_settings = CookieSettings::Factory::GetForProfile(profile); |
| 194 params->ssl_config_service = profile->GetSSLConfigService(); | 193 params->ssl_config_service = profile->GetSSLConfigService(); |
| 195 base::Callback<Profile*(void)> profile_getter = | 194 base::Callback<Profile*(void)> profile_getter = |
| 196 base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(), | 195 base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(), |
| 197 profile); | 196 profile); |
| 198 params->cookie_monster_delegate = | 197 params->cookie_monster_delegate = |
| 199 new ChromeCookieMonsterDelegate(profile_getter); | 198 new ChromeCookieMonsterDelegate(profile_getter); |
| 200 params->extension_info_map = | 199 params->extension_info_map = |
| 201 ExtensionSystemFactory::GetForProfile(profile)->info_map(); | 200 ExtensionSystem::Get(profile)->info_map(); |
| 202 | 201 |
| 203 #if defined(ENABLE_NOTIFICATIONS) | 202 #if defined(ENABLE_NOTIFICATIONS) |
| 204 params->notification_service = | 203 params->notification_service = |
| 205 DesktopNotificationServiceFactory::GetForProfile(profile); | 204 DesktopNotificationServiceFactory::GetForProfile(profile); |
| 206 #endif | 205 #endif |
| 207 | 206 |
| 208 params->protocol_handler_registry = profile->GetProtocolHandlerRegistry(); | 207 params->protocol_handler_registry = profile->GetProtocolHandlerRegistry(); |
| 209 | 208 |
| 210 ChromeProxyConfigService* proxy_config_service = | 209 ChromeProxyConfigService* proxy_config_service = |
| 211 ProxyServiceFactory::CreateProxyConfigService(true); | 210 ProxyServiceFactory::CreateProxyConfigService(true); |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 #endif | 527 #endif |
| 529 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); | 528 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); |
| 530 if (!posted) | 529 if (!posted) |
| 531 delete this; | 530 delete this; |
| 532 } | 531 } |
| 533 | 532 |
| 534 void ProfileIOData::set_server_bound_cert_service( | 533 void ProfileIOData::set_server_bound_cert_service( |
| 535 net::ServerBoundCertService* server_bound_cert_service) const { | 534 net::ServerBoundCertService* server_bound_cert_service) const { |
| 536 server_bound_cert_service_.reset(server_bound_cert_service); | 535 server_bound_cert_service_.reset(server_bound_cert_service); |
| 537 } | 536 } |
| OLD | NEW |