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

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

Issue 140633004: Reland CL to implement browser-side logging to WebRtc log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: These are the changes that should fix crbug.com/338848 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.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index 73522cb58019a57e8f626a7ef5c66dcf4b622422..a2d8df52e148c7d3141da328eb2c58a2c6b7c16d 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -124,6 +124,8 @@ class CONTENT_EXPORT RenderProcessHostImpl
#if defined(ENABLE_WEBRTC)
virtual void EnableAecDump(const base::FilePath& file) OVERRIDE;
virtual void DisableAecDump() OVERRIDE;
+ virtual void SetWebRtcLogMessageCallback(
+ base::Callback<void(const std::string&)> callback) OVERRIDE;
#endif
// IPC::Sender via RenderProcessHost.
@@ -165,6 +167,11 @@ class CONTENT_EXPORT RenderProcessHostImpl
return make_scoped_refptr(geolocation_dispatcher_host_);
}
+#if defined(ENABLE_WEBRTC)
+ // Fires the webrtc log message callback with |message|, if callback is set.
+ void WebRtcLogMessage(const std::string& message);
+#endif
+
// Register/unregister the host identified by the host id in the global host
// list.
static void RegisterHost(int host_id, RenderProcessHost* host);
@@ -389,6 +396,10 @@ class CONTENT_EXPORT RenderProcessHostImpl
// Message filter for geolocation messages.
GeolocationDispatcherHost* geolocation_dispatcher_host_;
+#if defined(ENABLE_WEBRTC)
+ base::Callback<void(const std::string&)> webrtc_log_message_callback_;
+#endif
+
// Lives on the browser's ChildThread.
base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698