| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 #endif | 239 #endif |
| 240 | 240 |
| 241 #if defined(ENABLE_PLUGINS) | 241 #if defined(ENABLE_PLUGINS) |
| 242 #include "chrome/browser/plugins/chrome_content_browser_client_plugins_part.h" | 242 #include "chrome/browser/plugins/chrome_content_browser_client_plugins_part.h" |
| 243 #endif | 243 #endif |
| 244 | 244 |
| 245 #if defined(ENABLE_SPELLCHECK) | 245 #if defined(ENABLE_SPELLCHECK) |
| 246 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" | 246 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
| 247 #endif | 247 #endif |
| 248 | 248 |
| 249 #if defined(USE_PLATFORM_SPELLCHECKER) | 249 #if defined(USE_BROWSER_SPELLCHECKER) |
| 250 #include "chrome/browser/spellchecker/spellcheck_message_filter_platform.h" | 250 #include "chrome/browser/spellchecker/spellcheck_message_filter_platform.h" |
| 251 #endif | 251 #endif |
| 252 | 252 |
| 253 #if defined(ENABLE_WEBRTC) | 253 #if defined(ENABLE_WEBRTC) |
| 254 #include "chrome/browser/media/webrtc_logging_handler_host.h" | 254 #include "chrome/browser/media/webrtc_logging_handler_host.h" |
| 255 #endif | 255 #endif |
| 256 | 256 |
| 257 #if defined(ENABLE_MEDIA_ROUTER) | 257 #if defined(ENABLE_MEDIA_ROUTER) |
| 258 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" | 258 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" |
| 259 #endif | 259 #endif |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 #if defined(ENABLE_EXTENSIONS) | 837 #if defined(ENABLE_EXTENSIONS) |
| 838 host->AddFilter(new cast::CastTransportHostFilter); | 838 host->AddFilter(new cast::CastTransportHostFilter); |
| 839 #endif | 839 #endif |
| 840 #if defined(ENABLE_PRINTING) | 840 #if defined(ENABLE_PRINTING) |
| 841 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); | 841 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); |
| 842 #endif | 842 #endif |
| 843 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); | 843 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); |
| 844 #if defined(ENABLE_SPELLCHECK) | 844 #if defined(ENABLE_SPELLCHECK) |
| 845 host->AddFilter(new SpellCheckMessageFilter(id)); | 845 host->AddFilter(new SpellCheckMessageFilter(id)); |
| 846 #endif | 846 #endif |
| 847 #if defined(USE_PLATFORM_SPELLCHECKER) | 847 #if defined(USE_BROWSER_SPELLCHECKER) |
| 848 host->AddFilter(new SpellCheckMessageFilterPlatform(id)); | 848 host->AddFilter(new SpellCheckMessageFilterPlatform(id)); |
| 849 #endif | 849 #endif |
| 850 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); | 850 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); |
| 851 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); | 851 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); |
| 852 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); | 852 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); |
| 853 #if defined(ENABLE_WEBRTC) | 853 #if defined(ENABLE_WEBRTC) |
| 854 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = | 854 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = |
| 855 new WebRtcLoggingHandlerHost(profile); | 855 new WebRtcLoggingHandlerHost(profile); |
| 856 host->SetWebRtcLogMessageCallback(base::Bind( | 856 host->SetWebRtcLogMessageCallback(base::Bind( |
| 857 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host)); | 857 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host)); |
| (...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2564 switches::kDisableWebRtcEncryption, | 2564 switches::kDisableWebRtcEncryption, |
| 2565 }; | 2565 }; |
| 2566 to_command_line->CopySwitchesFrom(from_command_line, | 2566 to_command_line->CopySwitchesFrom(from_command_line, |
| 2567 kWebRtcDevSwitchNames, | 2567 kWebRtcDevSwitchNames, |
| 2568 arraysize(kWebRtcDevSwitchNames)); | 2568 arraysize(kWebRtcDevSwitchNames)); |
| 2569 } | 2569 } |
| 2570 } | 2570 } |
| 2571 #endif // defined(ENABLE_WEBRTC) | 2571 #endif // defined(ENABLE_WEBRTC) |
| 2572 | 2572 |
| 2573 } // namespace chrome | 2573 } // namespace chrome |
| OLD | NEW |