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

Unified Diff: media/audio/audio_logging.h

Issue 1864483002: Forward output glitch information from stream WebRTC log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 8 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: media/audio/audio_logging.h
diff --git a/media/audio/audio_logging.h b/media/audio/audio_logging.h
index 4d7551f2021d9eb770e887dd80c25a18caa4a753..e0905f206693b175b95f08494446227f6b6f7970 100644
--- a/media/audio/audio_logging.h
+++ b/media/audio/audio_logging.h
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
namespace media {
+
class AudioParameters;
// AudioLog logs state information about an active audio component. Each method
@@ -82,6 +83,16 @@ class AudioLogFactory {
virtual ~AudioLogFactory() {}
};
+// Callback function used for writing to native WebRTC log from media.
+typedef void (*WebRtcLoggingCallback)(const std::string&);
+
+// Function that the embedder calls to set the callback. Must only be called
+// once.
+void InitWebRtcLoggingCallback(WebRtcLoggingCallback callback);
+
+// Function that media code calls to log. Forwards to callback function if set.
+void WebRtcLogMessage(const std::string& message);
+
} // namespace media
#endif // MEDIA_AUDIO_AUDIO_LOGGING_H_

Powered by Google App Engine
This is Rietveld 408576698