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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 #include "ui/base/l10n/l10n_util.h" | 143 #include "ui/base/l10n/l10n_util.h" |
144 #include "ui/base/resource/resource_bundle.h" | 144 #include "ui/base/resource/resource_bundle.h" |
145 #include "ui/resources/grit/ui_resources.h" | 145 #include "ui/resources/grit/ui_resources.h" |
146 | 146 |
147 #if defined(OS_WIN) | 147 #if defined(OS_WIN) |
148 #include "base/win/windows_version.h" | 148 #include "base/win/windows_version.h" |
149 #include "chrome/browser/chrome_browser_main_win.h" | 149 #include "chrome/browser/chrome_browser_main_win.h" |
150 #include "sandbox/win/src/sandbox_policy.h" | 150 #include "sandbox/win/src/sandbox_policy.h" |
151 #elif defined(OS_MACOSX) | 151 #elif defined(OS_MACOSX) |
152 #include "chrome/browser/chrome_browser_main_mac.h" | 152 #include "chrome/browser/chrome_browser_main_mac.h" |
153 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" | |
154 #elif defined(OS_CHROMEOS) | 153 #elif defined(OS_CHROMEOS) |
155 #include "chrome/browser/chromeos/attestation/platform_verification_impl.h" | 154 #include "chrome/browser/chromeos/attestation/platform_verification_impl.h" |
156 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" | 155 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" |
157 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" | 156 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" |
158 #include "chrome/browser/chromeos/file_manager/app_id.h" | 157 #include "chrome/browser/chromeos/file_manager/app_id.h" |
159 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.
h" | 158 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.
h" |
160 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 159 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
161 #include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h" | 160 #include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h" |
162 #include "chrome/browser/chromeos/login/startup_utils.h" | 161 #include "chrome/browser/chromeos/login/startup_utils.h" |
163 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 162 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 #endif | 239 #endif |
241 | 240 |
242 #if defined(ENABLE_PLUGINS) | 241 #if defined(ENABLE_PLUGINS) |
243 #include "chrome/browser/plugins/chrome_content_browser_client_plugins_part.h" | 242 #include "chrome/browser/plugins/chrome_content_browser_client_plugins_part.h" |
244 #endif | 243 #endif |
245 | 244 |
246 #if defined(ENABLE_SPELLCHECK) | 245 #if defined(ENABLE_SPELLCHECK) |
247 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" | 246 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
248 #endif | 247 #endif |
249 | 248 |
| 249 #if defined(USE_PLATFORM_SPELLCHECKER) |
| 250 #include "chrome/browser/spellchecker/spellcheck_message_filter_platform.h" |
| 251 #endif |
| 252 |
250 #if defined(ENABLE_WEBRTC) | 253 #if defined(ENABLE_WEBRTC) |
251 #include "chrome/browser/media/webrtc_logging_handler_host.h" | 254 #include "chrome/browser/media/webrtc_logging_handler_host.h" |
252 #endif | 255 #endif |
253 | 256 |
254 #if defined(ENABLE_MEDIA_ROUTER) | 257 #if defined(ENABLE_MEDIA_ROUTER) |
255 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" | 258 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" |
256 #endif | 259 #endif |
257 | 260 |
258 using base::FileDescriptor; | 261 using base::FileDescriptor; |
259 using blink::WebWindowFeatures; | 262 using blink::WebWindowFeatures; |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 #if defined(ENABLE_EXTENSIONS) | 837 #if defined(ENABLE_EXTENSIONS) |
835 host->AddFilter(new cast::CastTransportHostFilter); | 838 host->AddFilter(new cast::CastTransportHostFilter); |
836 #endif | 839 #endif |
837 #if defined(ENABLE_PRINTING) | 840 #if defined(ENABLE_PRINTING) |
838 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); | 841 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); |
839 #endif | 842 #endif |
840 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); | 843 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); |
841 #if defined(ENABLE_SPELLCHECK) | 844 #if defined(ENABLE_SPELLCHECK) |
842 host->AddFilter(new SpellCheckMessageFilter(id)); | 845 host->AddFilter(new SpellCheckMessageFilter(id)); |
843 #endif | 846 #endif |
844 #if defined(OS_MACOSX) | 847 #if defined(USE_PLATFORM_SPELLCHECKER) |
845 host->AddFilter(new SpellCheckMessageFilterMac(id)); | 848 host->AddFilter(new SpellCheckMessageFilterPlatform(id)); |
846 #endif | 849 #endif |
847 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); | 850 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); |
848 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); | 851 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); |
849 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); | 852 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); |
850 #if defined(ENABLE_WEBRTC) | 853 #if defined(ENABLE_WEBRTC) |
851 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = | 854 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = |
852 new WebRtcLoggingHandlerHost(profile); | 855 new WebRtcLoggingHandlerHost(profile); |
853 host->SetWebRtcLogMessageCallback(base::Bind( | 856 host->SetWebRtcLogMessageCallback(base::Bind( |
854 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host)); | 857 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host)); |
855 host->AddFilter(webrtc_logging_handler_host); | 858 host->AddFilter(webrtc_logging_handler_host); |
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2547 switches::kDisableWebRtcEncryption, | 2550 switches::kDisableWebRtcEncryption, |
2548 }; | 2551 }; |
2549 to_command_line->CopySwitchesFrom(from_command_line, | 2552 to_command_line->CopySwitchesFrom(from_command_line, |
2550 kWebRtcDevSwitchNames, | 2553 kWebRtcDevSwitchNames, |
2551 arraysize(kWebRtcDevSwitchNames)); | 2554 arraysize(kWebRtcDevSwitchNames)); |
2552 } | 2555 } |
2553 } | 2556 } |
2554 #endif // defined(ENABLE_WEBRTC) | 2557 #endif // defined(ENABLE_WEBRTC) |
2555 | 2558 |
2556 } // namespace chrome | 2559 } // namespace chrome |
OLD | NEW |