| 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" | 
 |   28 #include "chrome/browser/extensions/extension_system_factory.h" | 
|   27 #include "chrome/browser/io_thread.h" |   29 #include "chrome/browser/io_thread.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" | 
|   36 #include "chrome/browser/profiles/profile.h" |   38 #include "chrome/browser/profiles/profile.h" | 
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  187   params->io_thread = g_browser_process->io_thread(); |  189   params->io_thread = g_browser_process->io_thread(); | 
|  188  |  190  | 
|  189   params->host_content_settings_map = profile->GetHostContentSettingsMap(); |  191   params->host_content_settings_map = profile->GetHostContentSettingsMap(); | 
|  190   params->cookie_settings = CookieSettings::Factory::GetForProfile(profile); |  192   params->cookie_settings = CookieSettings::Factory::GetForProfile(profile); | 
|  191   params->ssl_config_service = profile->GetSSLConfigService(); |  193   params->ssl_config_service = profile->GetSSLConfigService(); | 
|  192   base::Callback<Profile*(void)> profile_getter = |  194   base::Callback<Profile*(void)> profile_getter = | 
|  193       base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(), |  195       base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(), | 
|  194                  profile); |  196                  profile); | 
|  195   params->cookie_monster_delegate = |  197   params->cookie_monster_delegate = | 
|  196       new ChromeCookieMonsterDelegate(profile_getter); |  198       new ChromeCookieMonsterDelegate(profile_getter); | 
|  197   params->extension_info_map = profile->GetExtensionInfoMap(); |  199   params->extension_info_map = | 
 |  200       ExtensionSystemFactory::GetForProfile(profile)->info_map(); | 
|  198  |  201  | 
|  199 #if defined(ENABLE_NOTIFICATIONS) |  202 #if defined(ENABLE_NOTIFICATIONS) | 
|  200   params->notification_service = |  203   params->notification_service = | 
|  201       DesktopNotificationServiceFactory::GetForProfile(profile); |  204       DesktopNotificationServiceFactory::GetForProfile(profile); | 
|  202 #endif |  205 #endif | 
|  203  |  206  | 
|  204   params->protocol_handler_registry = profile->GetProtocolHandlerRegistry(); |  207   params->protocol_handler_registry = profile->GetProtocolHandlerRegistry(); | 
|  205  |  208  | 
|  206   ChromeProxyConfigService* proxy_config_service = |  209   ChromeProxyConfigService* proxy_config_service = | 
|  207       ProxyServiceFactory::CreateProxyConfigService(true); |  210       ProxyServiceFactory::CreateProxyConfigService(true); | 
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  514 #endif |  517 #endif | 
|  515   bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); |  518   bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); | 
|  516   if (!posted) |  519   if (!posted) | 
|  517     delete this; |  520     delete this; | 
|  518 } |  521 } | 
|  519  |  522  | 
|  520 void ProfileIOData::set_server_bound_cert_service( |  523 void ProfileIOData::set_server_bound_cert_service( | 
|  521     net::ServerBoundCertService* server_bound_cert_service) const { |  524     net::ServerBoundCertService* server_bound_cert_service) const { | 
|  522   server_bound_cert_service_.reset(server_bound_cert_service); |  525   server_bound_cert_service_.reset(server_bound_cert_service); | 
|  523 } |  526 } | 
| OLD | NEW |