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

Unified Diff: content/browser/renderer_host/media/media_stream_manager.h

Issue 140843007: Implement browser-side logging to WebRtc log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/media/media_stream_manager.h
diff --git a/content/browser/renderer_host/media/media_stream_manager.h b/content/browser/renderer_host/media/media_stream_manager.h
index eefab6bdcb2087ddfc4890a8f7b1c93a3691050f..01f436b400aedd9e3dc5f7462a90547aef912617 100644
--- a/content/browser/renderer_host/media/media_stream_manager.h
+++ b/content/browser/renderer_host/media/media_stream_manager.h
@@ -185,6 +185,11 @@ class CONTENT_EXPORT MediaStreamManager
// too late. (see http://crbug.com/247525#c14).
virtual void WillDestroyCurrentMessageLoop() OVERRIDE;
+ // Adds |message| to native logs for outstanding device requests, for use by
+ // render processes requesting logging from webrtcLoggingPrivate API.
+ void AddLogMessageOnUIThread(const std::string& message);
+ static void SendMessageToNativeLog(const std::string& message);
perkj_chrome 2014/01/24 09:15:10 Can you add a comment that it is safe to call Send
no longer working on chromium 2014/01/24 09:54:38 will this static API be used outside MediaStreamMa
tommi (sloooow) - chröme 2014/01/24 12:34:54 +1 on documenting this function like the other met
vrk (LEFT CHROMIUM) 2014/01/25 00:50:21 Done.
vrk (LEFT CHROMIUM) 2014/01/25 00:50:21 Done.
vrk (LEFT CHROMIUM) 2014/01/25 00:50:21 Yes, it's already used in VideoCaptureController::
+
protected:
// Used for testing.
MediaStreamManager();
@@ -320,6 +325,11 @@ class CONTENT_EXPORT MediaStreamManager
const std::string& source_id,
std::string* device_id) const;
+ // Sends |stream_type| and the contents of |devices| to the
+ // webrtcLoggingPrivate API.
+ void LogDevicesToNativeLogs(MediaStreamType stream_type,
+ const StreamDeviceInfoArray& devices);
+
// Device thread shared by VideoCaptureManager and AudioInputDeviceManager.
scoped_ptr<base::Thread> device_thread_;

Powered by Google App Engine
This is Rietveld 408576698