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" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/chrome_notification_types.h" | 26 #include "chrome/browser/chrome_notification_types.h" |
27 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 27 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
28 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 28 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
29 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" | 29 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
30 #include "chrome/browser/devtools/devtools_network_controller.h" | 30 #include "chrome/browser/devtools/devtools_network_controller.h" |
31 #include "chrome/browser/devtools/devtools_network_transaction_factory.h" | 31 #include "chrome/browser/devtools/devtools_network_transaction_factory.h" |
32 #include "chrome/browser/download/download_service.h" | 32 #include "chrome/browser/download/download_service.h" |
33 #include "chrome/browser/download/download_service_factory.h" | 33 #include "chrome/browser/download/download_service_factory.h" |
34 #include "chrome/browser/io_thread.h" | 34 #include "chrome/browser/io_thread.h" |
35 #include "chrome/browser/media/media_device_id_salt.h" | 35 #include "chrome/browser/media/media_device_id_salt.h" |
36 #include "chrome/browser/net/about_protocol_handler.h" | |
37 #include "chrome/browser/net/chrome_http_user_agent_settings.h" | 36 #include "chrome/browser/net/chrome_http_user_agent_settings.h" |
38 #include "chrome/browser/net/chrome_net_log.h" | 37 #include "chrome/browser/net/chrome_net_log.h" |
39 #include "chrome/browser/net/chrome_network_delegate.h" | 38 #include "chrome/browser/net/chrome_network_delegate.h" |
40 #include "chrome/browser/net/chrome_url_request_context_getter.h" | 39 #include "chrome/browser/net/chrome_url_request_context_getter.h" |
41 #include "chrome/browser/net/cookie_store_util.h" | 40 #include "chrome/browser/net/cookie_store_util.h" |
42 #include "chrome/browser/net/proxy_service_factory.h" | 41 #include "chrome/browser/net/proxy_service_factory.h" |
43 #include "chrome/browser/net/resource_prefetch_predictor_observer.h" | 42 #include "chrome/browser/net/resource_prefetch_predictor_observer.h" |
44 #include "chrome/browser/predictors/resource_prefetch_predictor.h" | 43 #include "chrome/browser/predictors/resource_prefetch_predictor.h" |
45 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" | 44 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" |
46 #include "chrome/browser/profiles/profile.h" | 45 #include "chrome/browser/profiles/profile.h" |
47 #include "chrome/browser/profiles/profile_manager.h" | 46 #include "chrome/browser/profiles/profile_manager.h" |
48 #include "chrome/browser/ssl/chrome_fraudulent_certificate_reporter.h" | 47 #include "chrome/browser/ssl/chrome_fraudulent_certificate_reporter.h" |
49 #include "chrome/browser/ui/search/new_tab_page_interceptor_service.h" | 48 #include "chrome/browser/ui/search/new_tab_page_interceptor_service.h" |
50 #include "chrome/browser/ui/search/new_tab_page_interceptor_service_factory.h" | 49 #include "chrome/browser/ui/search/new_tab_page_interceptor_service_factory.h" |
51 #include "chrome/common/chrome_paths.h" | 50 #include "chrome/common/chrome_paths.h" |
52 #include "chrome/common/chrome_switches.h" | 51 #include "chrome/common/chrome_switches.h" |
53 #include "chrome/common/pref_names.h" | 52 #include "chrome/common/pref_names.h" |
54 #include "chrome/common/url_constants.h" | 53 #include "chrome/common/url_constants.h" |
| 54 #include "components/about_handler/about_protocol_handler.h" |
55 #include "components/content_settings/core/browser/content_settings_provider.h" | 55 #include "components/content_settings/core/browser/content_settings_provider.h" |
56 #include "components/content_settings/core/browser/cookie_settings.h" | 56 #include "components/content_settings/core/browser/cookie_settings.h" |
57 #include "components/content_settings/core/browser/host_content_settings_map.h" | 57 #include "components/content_settings/core/browser/host_content_settings_map.h" |
58 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 58 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
59 #include "components/dom_distiller/core/url_constants.h" | 59 #include "components/dom_distiller/core/url_constants.h" |
60 #include "components/sync_driver/pref_names.h" | 60 #include "components/sync_driver/pref_names.h" |
61 #include "components/url_formatter/url_fixer.h" | 61 #include "components/url_formatter/url_fixer.h" |
62 #include "content/public/browser/browser_thread.h" | 62 #include "content/public/browser/browser_thread.h" |
63 #include "content/public/browser/host_zoom_map.h" | 63 #include "content/public/browser/host_zoom_map.h" |
64 #include "content/public/browser/notification_service.h" | 64 #include "content/public/browser/notification_service.h" |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 #endif // defined(OS_CHROMEOS) | 1199 #endif // defined(OS_CHROMEOS) |
1200 #if defined(OS_ANDROID) | 1200 #if defined(OS_ANDROID) |
1201 set_protocol = job_factory->SetProtocolHandler( | 1201 set_protocol = job_factory->SetProtocolHandler( |
1202 url::kContentScheme, | 1202 url::kContentScheme, |
1203 content::ContentProtocolHandler::Create( | 1203 content::ContentProtocolHandler::Create( |
1204 content::BrowserThread::GetBlockingPool()-> | 1204 content::BrowserThread::GetBlockingPool()-> |
1205 GetTaskRunnerWithShutdownBehavior( | 1205 GetTaskRunnerWithShutdownBehavior( |
1206 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN))); | 1206 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN))); |
1207 #endif | 1207 #endif |
1208 | 1208 |
1209 job_factory->SetProtocolHandler( | 1209 job_factory->SetProtocolHandler(url::kAboutScheme, |
1210 url::kAboutScheme, new chrome_browser_net::AboutProtocolHandler()); | 1210 new about_handler::AboutProtocolHandler()); |
1211 #if !defined(DISABLE_FTP_SUPPORT) | 1211 #if !defined(DISABLE_FTP_SUPPORT) |
1212 DCHECK(ftp_transaction_factory); | 1212 DCHECK(ftp_transaction_factory); |
1213 job_factory->SetProtocolHandler( | 1213 job_factory->SetProtocolHandler( |
1214 url::kFtpScheme, | 1214 url::kFtpScheme, |
1215 new net::FtpProtocolHandler(ftp_transaction_factory)); | 1215 new net::FtpProtocolHandler(ftp_transaction_factory)); |
1216 #endif // !defined(DISABLE_FTP_SUPPORT) | 1216 #endif // !defined(DISABLE_FTP_SUPPORT) |
1217 | 1217 |
1218 #if defined(DEBUG_DEVTOOLS) | 1218 #if defined(DEBUG_DEVTOOLS) |
1219 request_interceptors.push_back(new DebugDevToolsInterceptor); | 1219 request_interceptors.push_back(new DebugDevToolsInterceptor); |
1220 #endif | 1220 #endif |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 new DevToolsNetworkTransactionFactory( | 1328 new DevToolsNetworkTransactionFactory( |
1329 network_controller_handle_.GetController(), shared_session), | 1329 network_controller_handle_.GetController(), shared_session), |
1330 shared_session->net_log(), backend)); | 1330 shared_session->net_log(), backend)); |
1331 } | 1331 } |
1332 | 1332 |
1333 void ProfileIOData::SetCookieSettingsForTesting( | 1333 void ProfileIOData::SetCookieSettingsForTesting( |
1334 content_settings::CookieSettings* cookie_settings) { | 1334 content_settings::CookieSettings* cookie_settings) { |
1335 DCHECK(!cookie_settings_.get()); | 1335 DCHECK(!cookie_settings_.get()); |
1336 cookie_settings_ = cookie_settings; | 1336 cookie_settings_ = cookie_settings; |
1337 } | 1337 } |
OLD | NEW |