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/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 #include "components/net_log/chrome_net_log.h" | 132 #include "components/net_log/chrome_net_log.h" |
133 #include "components/password_manager/content/browser/content_password_manager_d
river_factory.h" | 133 #include "components/password_manager/content/browser/content_password_manager_d
river_factory.h" |
134 #include "components/payments/payment_request.mojom.h" | 134 #include "components/payments/payment_request.mojom.h" |
135 #include "components/pref_registry/pref_registry_syncable.h" | 135 #include "components/pref_registry/pref_registry_syncable.h" |
136 #include "components/prefs/pref_service.h" | 136 #include "components/prefs/pref_service.h" |
137 #include "components/prefs/scoped_user_pref_update.h" | 137 #include "components/prefs/scoped_user_pref_update.h" |
138 #include "components/rappor/rappor_recorder_impl.h" | 138 #include "components/rappor/rappor_recorder_impl.h" |
139 #include "components/rappor/rappor_utils.h" | 139 #include "components/rappor/rappor_utils.h" |
140 #include "components/security_interstitials/core/ssl_error_ui.h" | 140 #include "components/security_interstitials/core/ssl_error_ui.h" |
141 #include "components/signin/core/common/profile_management_switches.h" | 141 #include "components/signin/core/common/profile_management_switches.h" |
| 142 #include "components/spellcheck/spellcheck_build_features.h" |
142 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" | 143 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" |
143 #include "components/translate/core/common/translate_switches.h" | 144 #include "components/translate/core/common/translate_switches.h" |
144 #include "components/url_formatter/url_fixer.h" | 145 #include "components/url_formatter/url_fixer.h" |
145 #include "components/variations/variations_associated_data.h" | 146 #include "components/variations/variations_associated_data.h" |
146 #include "components/version_info/version_info.h" | 147 #include "components/version_info/version_info.h" |
147 #include "content/public/browser/browser_child_process_host.h" | 148 #include "content/public/browser/browser_child_process_host.h" |
148 #include "content/public/browser/browser_main_parts.h" | 149 #include "content/public/browser/browser_main_parts.h" |
149 #include "content/public/browser/browser_ppapi_host.h" | 150 #include "content/public/browser/browser_ppapi_host.h" |
150 #include "content/public/browser/browser_thread.h" | 151 #include "content/public/browser/browser_thread.h" |
151 #include "content/public/browser/browser_url_handler.h" | 152 #include "content/public/browser/browser_url_handler.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 #include "extensions/common/permissions/permissions_data.h" | 312 #include "extensions/common/permissions/permissions_data.h" |
312 #include "extensions/common/permissions/socket_permission.h" | 313 #include "extensions/common/permissions/socket_permission.h" |
313 #include "extensions/common/switches.h" | 314 #include "extensions/common/switches.h" |
314 #endif | 315 #endif |
315 | 316 |
316 #if defined(ENABLE_PLUGINS) | 317 #if defined(ENABLE_PLUGINS) |
317 #include "chrome/browser/plugins/chrome_content_browser_client_plugins_part.h" | 318 #include "chrome/browser/plugins/chrome_content_browser_client_plugins_part.h" |
318 #include "chrome/browser/plugins/flash_download_interception.h" | 319 #include "chrome/browser/plugins/flash_download_interception.h" |
319 #endif | 320 #endif |
320 | 321 |
321 #if defined(ENABLE_SPELLCHECK) | 322 #if BUILDFLAG(ENABLE_SPELLCHECK) |
322 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" | 323 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
323 #endif | 324 #endif |
324 | 325 |
325 #if defined(USE_BROWSER_SPELLCHECKER) | 326 #if BUILDFLAG(USE_BROWSER_SPELLCHECKER) |
326 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" | 327 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" |
327 #endif | 328 #endif |
328 | 329 |
329 #if defined(ENABLE_WEBRTC) | 330 #if defined(ENABLE_WEBRTC) |
330 #include "chrome/browser/media/audio_debug_recordings_handler.h" | 331 #include "chrome/browser/media/audio_debug_recordings_handler.h" |
331 #include "chrome/browser/media/webrtc/webrtc_logging_handler_host.h" | 332 #include "chrome/browser/media/webrtc/webrtc_logging_handler_host.h" |
332 #endif | 333 #endif |
333 | 334 |
334 #if defined(ENABLE_MEDIA_ROUTER) | 335 #if defined(ENABLE_MEDIA_ROUTER) |
335 #include "chrome/browser/media/cast_remoting_connector.h" | 336 #include "chrome/browser/media/cast_remoting_connector.h" |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 host->GetStoragePartition()->GetURLRequestContext(); | 1027 host->GetStoragePartition()->GetURLRequestContext(); |
1027 | 1028 |
1028 host->AddFilter(new ChromeRenderMessageFilter( | 1029 host->AddFilter(new ChromeRenderMessageFilter( |
1029 id, profile, host->GetStoragePartition()->GetServiceWorkerContext())); | 1030 id, profile, host->GetStoragePartition()->GetServiceWorkerContext())); |
1030 #if BUILDFLAG(ENABLE_EXTENSIONS) | 1031 #if BUILDFLAG(ENABLE_EXTENSIONS) |
1031 host->AddFilter(new cast::CastTransportHostFilter); | 1032 host->AddFilter(new cast::CastTransportHostFilter); |
1032 #endif | 1033 #endif |
1033 #if BUILDFLAG(ENABLE_PRINTING) | 1034 #if BUILDFLAG(ENABLE_PRINTING) |
1034 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); | 1035 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); |
1035 #endif | 1036 #endif |
1036 #if defined(ENABLE_SPELLCHECK) | 1037 #if BUILDFLAG(ENABLE_SPELLCHECK) |
1037 host->AddFilter(new SpellCheckMessageFilter(id)); | 1038 host->AddFilter(new SpellCheckMessageFilter(id)); |
1038 #endif | 1039 #endif |
1039 #if defined(USE_BROWSER_SPELLCHECKER) | 1040 #if BUILDFLAG(USE_BROWSER_SPELLCHECKER) |
1040 host->AddFilter(new SpellCheckMessageFilterPlatform(id)); | 1041 host->AddFilter(new SpellCheckMessageFilterPlatform(id)); |
1041 #endif | 1042 #endif |
1042 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); | 1043 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); |
1043 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); | 1044 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); |
1044 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); | 1045 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); |
1045 #if defined(ENABLE_WEBRTC) | 1046 #if defined(ENABLE_WEBRTC) |
1046 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = | 1047 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = |
1047 new WebRtcLoggingHandlerHost(id, profile, | 1048 new WebRtcLoggingHandlerHost(id, profile, |
1048 g_browser_process->webrtc_log_uploader()); | 1049 g_browser_process->webrtc_log_uploader()); |
1049 host->AddFilter(webrtc_logging_handler_host); | 1050 host->AddFilter(webrtc_logging_handler_host); |
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3238 kWebRtcDevSwitchNames, | 3239 kWebRtcDevSwitchNames, |
3239 arraysize(kWebRtcDevSwitchNames)); | 3240 arraysize(kWebRtcDevSwitchNames)); |
3240 } | 3241 } |
3241 } | 3242 } |
3242 #endif // defined(ENABLE_WEBRTC) | 3243 #endif // defined(ENABLE_WEBRTC) |
3243 | 3244 |
3244 std::unique_ptr<content::MemoryCoordinatorDelegate> | 3245 std::unique_ptr<content::MemoryCoordinatorDelegate> |
3245 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { | 3246 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { |
3246 return memory::ChromeMemoryCoordinatorDelegate::Create(); | 3247 return memory::ChromeMemoryCoordinatorDelegate::Create(); |
3247 } | 3248 } |
OLD | NEW |