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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 140843007: Implement browser-side logging to WebRtc log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responses 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 317f979b5e832f404e5e2819a7f67d8231c3f5fc..34a61f75b56b7da289ffcf5a2a7998e779e80cfd 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1520,6 +1520,18 @@ void RenderProcessHostImpl::DisableAecDump() {
base::Bind(&RenderProcessHostImpl::SendDisableAecDumpToRenderer,
weak_factory_.GetWeakPtr()));
}
+
+void RenderProcessHostImpl::SetWebRtcLogMessageCallback(
jam 2014/01/22 03:20:01 nit: we try to sort the methods in the cc file to
vrk (LEFT CHROMIUM) 2014/01/22 04:38:06 Done.
+ base::Callback<void(const std::string&)> callback) {
+ DCHECK(webrtc_log_message_callback_.is_null());
+ webrtc_log_message_callback_ = callback;
+}
+
+void RenderProcessHostImpl::WebRtcLogMessage(const std::string& message) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ if (!webrtc_log_message_callback_.is_null())
+ webrtc_log_message_callback_.Run(message);
+}
#endif
IPC::ChannelProxy* RenderProcessHostImpl::GetChannel() {
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698