| 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 <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 #if defined(OS_MACOSX) | 914 #if defined(OS_MACOSX) |
| 915 host->AddFilter(new SpellCheckMessageFilterMac(id)); | 915 host->AddFilter(new SpellCheckMessageFilterMac(id)); |
| 916 #endif | 916 #endif |
| 917 host->AddFilter(new ChromeNetBenchmarkingMessageFilter( | 917 host->AddFilter(new ChromeNetBenchmarkingMessageFilter( |
| 918 id, profile, context)); | 918 id, profile, context)); |
| 919 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); | 919 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); |
| 920 host->AddFilter(new TtsMessageFilter(id, profile)); | 920 host->AddFilter(new TtsMessageFilter(id, profile)); |
| 921 #if defined(ENABLE_WEBRTC) | 921 #if defined(ENABLE_WEBRTC) |
| 922 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = | 922 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = |
| 923 new WebRtcLoggingHandlerHost(profile); | 923 new WebRtcLoggingHandlerHost(profile); |
| 924 host->SetWebRtcLogMessageCallback(base::Bind( |
| 925 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host)); |
| 924 host->AddFilter(webrtc_logging_handler_host); | 926 host->AddFilter(webrtc_logging_handler_host); |
| 925 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( | 927 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( |
| 926 webrtc_logging_handler_host)); | 928 webrtc_logging_handler_host)); |
| 927 #endif | 929 #endif |
| 928 #if !defined(DISABLE_NACL) | 930 #if !defined(DISABLE_NACL) |
| 929 host->AddFilter(new nacl::NaClHostMessageFilter( | 931 host->AddFilter(new nacl::NaClHostMessageFilter( |
| 930 id, profile->IsOffTheRecord(), | 932 id, profile->IsOffTheRecord(), |
| 931 profile->GetPath(), | 933 profile->GetPath(), |
| 932 context)); | 934 context)); |
| 933 #endif | 935 #endif |
| (...skipping 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2661 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on | 2663 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on |
| 2662 // Chromium builds as well. | 2664 // Chromium builds as well. |
| 2663 return channel <= chrome::VersionInfo::CHANNEL_DEV; | 2665 return channel <= chrome::VersionInfo::CHANNEL_DEV; |
| 2664 #else | 2666 #else |
| 2665 return false; | 2667 return false; |
| 2666 #endif | 2668 #endif |
| 2667 } | 2669 } |
| 2668 | 2670 |
| 2669 | 2671 |
| 2670 } // namespace chrome | 2672 } // namespace chrome |
| OLD | NEW |