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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
272 | 272 |
273 #if defined(ENABLE_SPELLCHECK) | 273 #if defined(ENABLE_SPELLCHECK) |
274 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" | 274 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
275 #endif | 275 #endif |
276 | 276 |
277 #if defined(USE_BROWSER_SPELLCHECKER) | 277 #if defined(USE_BROWSER_SPELLCHECKER) |
278 #include "chrome/browser/spellchecker/spellcheck_message_filter_platform.h" | 278 #include "chrome/browser/spellchecker/spellcheck_message_filter_platform.h" |
279 #endif | 279 #endif |
280 | 280 |
281 #if defined(ENABLE_WEBRTC) | 281 #if defined(ENABLE_WEBRTC) |
282 #include "chrome/browser/media/webrtc_internal_log_handler_host.h" | |
282 #include "chrome/browser/media/webrtc_logging_handler_host.h" | 283 #include "chrome/browser/media/webrtc_logging_handler_host.h" |
283 #endif | 284 #endif |
284 | 285 |
285 #if defined(ENABLE_MEDIA_ROUTER) | 286 #if defined(ENABLE_MEDIA_ROUTER) |
286 #include "chrome/browser/media/router/media_router_feature.h" | 287 #include "chrome/browser/media/router/media_router_feature.h" |
287 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" | 288 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" |
288 #endif | 289 #endif |
289 | 290 |
290 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 291 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
291 #include "components/webusb/public/interfaces/webusb_permission_bubble.mojom.h" | 292 #include "components/webusb/public/interfaces/webusb_permission_bubble.mojom.h" |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
918 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); | 919 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); |
919 #if defined(ENABLE_WEBRTC) | 920 #if defined(ENABLE_WEBRTC) |
920 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = | 921 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = |
921 new WebRtcLoggingHandlerHost( | 922 new WebRtcLoggingHandlerHost( |
922 profile, g_browser_process->webrtc_log_uploader()); | 923 profile, g_browser_process->webrtc_log_uploader()); |
923 host->SetWebRtcLogMessageCallback(base::Bind( | 924 host->SetWebRtcLogMessageCallback(base::Bind( |
924 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host)); | 925 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host)); |
925 host->AddFilter(webrtc_logging_handler_host); | 926 host->AddFilter(webrtc_logging_handler_host); |
926 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( | 927 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( |
927 webrtc_logging_handler_host)); | 928 webrtc_logging_handler_host)); |
929 | |
930 WebRtcInternalLogHandlerHost* webrtc_internal_log_handler_host = | |
931 new WebRtcInternalLogHandlerHost( | |
932 profile /*, g_browser_process->webrtc_log_uploader()*/); | |
tommi (sloooow) - chröme
2016/02/05 11:09:00
Something that's intended to be cleaned up?
(next
terelius1
2016/02/16 20:09:12
Yes. Done.
| |
933 // host->SetWebRtcLogMessageCallback(base::Bind( | |
934 // &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host)); | |
935 host->AddFilter(webrtc_internal_log_handler_host); | |
936 host->SetUserData(host, | |
Henrik Grunell
2016/02/03 08:37:32
I think this will override the previous call above
terelius-chromium
2016/02/05 09:27:37
Just a follow-up after our discussion. Do you have
Henrik Grunell
2016/02/05 10:05:44
Yeah, the new class should not be a filter since i
terelius1
2016/02/16 20:09:12
Removed the filter. Added static const strings to
Henrik Grunell
2016/02/23 15:29:10
Acknowledged.
| |
937 new base::UserDataAdapter<WebRtcInternalLogHandlerHost>( | |
938 webrtc_internal_log_handler_host)); | |
928 #endif | 939 #endif |
929 #if !defined(DISABLE_NACL) | 940 #if !defined(DISABLE_NACL) |
930 host->AddFilter(new nacl::NaClHostMessageFilter( | 941 host->AddFilter(new nacl::NaClHostMessageFilter( |
931 id, profile->IsOffTheRecord(), | 942 id, profile->IsOffTheRecord(), |
932 profile->GetPath(), | 943 profile->GetPath(), |
933 context)); | 944 context)); |
934 #endif | 945 #endif |
935 #if defined(OS_ANDROID) | 946 #if defined(OS_ANDROID) |
936 host->AddFilter(new cdm::CdmMessageFilterAndroid()); | 947 host->AddFilter(new cdm::CdmMessageFilterAndroid()); |
937 #endif | 948 #endif |
(...skipping 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2889 if (channel <= kMaxDisableEncryptionChannel) { | 2900 if (channel <= kMaxDisableEncryptionChannel) { |
2890 static const char* const kWebRtcDevSwitchNames[] = { | 2901 static const char* const kWebRtcDevSwitchNames[] = { |
2891 switches::kDisableWebRtcEncryption, | 2902 switches::kDisableWebRtcEncryption, |
2892 }; | 2903 }; |
2893 to_command_line->CopySwitchesFrom(from_command_line, | 2904 to_command_line->CopySwitchesFrom(from_command_line, |
2894 kWebRtcDevSwitchNames, | 2905 kWebRtcDevSwitchNames, |
2895 arraysize(kWebRtcDevSwitchNames)); | 2906 arraysize(kWebRtcDevSwitchNames)); |
2896 } | 2907 } |
2897 } | 2908 } |
2898 #endif // defined(ENABLE_WEBRTC) | 2909 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |