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_ |