Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 140843007: Implement browser-side logging to WebRtc log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to cr Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 #if defined(OS_MACOSX) 912 #if defined(OS_MACOSX)
913 host->AddFilter(new SpellCheckMessageFilterMac(id)); 913 host->AddFilter(new SpellCheckMessageFilterMac(id));
914 #endif 914 #endif
915 host->AddFilter(new ChromeNetBenchmarkingMessageFilter( 915 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(
916 id, profile, context)); 916 id, profile, context));
917 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); 917 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile));
918 host->AddFilter(new TtsMessageFilter(id, profile)); 918 host->AddFilter(new TtsMessageFilter(id, profile));
919 #if defined(ENABLE_WEBRTC) 919 #if defined(ENABLE_WEBRTC)
920 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = 920 WebRtcLoggingHandlerHost* webrtc_logging_handler_host =
921 new WebRtcLoggingHandlerHost(profile); 921 new WebRtcLoggingHandlerHost(profile);
922 host->SetWebRtcLogMessageCallback(base::Bind(
923 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host));
922 host->AddFilter(webrtc_logging_handler_host); 924 host->AddFilter(webrtc_logging_handler_host);
923 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( 925 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>(
924 webrtc_logging_handler_host)); 926 webrtc_logging_handler_host));
925 #endif 927 #endif
926 #if !defined(DISABLE_NACL) 928 #if !defined(DISABLE_NACL)
927 host->AddFilter(new nacl::NaClHostMessageFilter( 929 host->AddFilter(new nacl::NaClHostMessageFilter(
928 id, profile->IsOffTheRecord(), 930 id, profile->IsOffTheRecord(),
929 profile->GetPath(), 931 profile->GetPath(),
930 context)); 932 context));
931 #endif 933 #endif
(...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after
2655 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on 2657 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on
2656 // Chromium builds as well. 2658 // Chromium builds as well.
2657 return channel <= chrome::VersionInfo::CHANNEL_DEV; 2659 return channel <= chrome::VersionInfo::CHANNEL_DEV;
2658 #else 2660 #else
2659 return false; 2661 return false;
2660 #endif 2662 #endif
2661 } 2663 }
2662 2664
2663 2665
2664 } // namespace chrome 2666 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/webrtc_logging_handler_host.h » ('j') | chrome/browser/media/webrtc_logging_handler_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698