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

Unified Diff: webrtc/call/rtc_event_log.h

Issue 1374253002: Added functions on libjingle API to start and stop the recording of an RtcEventLog. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comments from the sun. Created 5 years, 2 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: webrtc/call/rtc_event_log.h
diff --git a/webrtc/call/rtc_event_log.h b/webrtc/call/rtc_event_log.h
index a4b7cadadb7c3970865380866cbf320805773175..8bff922fb4369102d67366bf7695b096a9088326 100644
--- a/webrtc/call/rtc_event_log.h
+++ b/webrtc/call/rtc_event_log.h
@@ -13,6 +13,7 @@
#include <string>
+#include "webrtc/base/platform_file.h"
#include "webrtc/base/scoped_ptr.h"
#include "webrtc/video_receive_stream.h"
#include "webrtc/video_send_stream.h"
@@ -41,6 +42,11 @@ class RtcEventLog {
// If the file cannot be opened, the RtcEventLog will not start logging.
virtual void StartLogging(const std::string& file_name, int duration_ms) = 0;
+ // Starts logging until either the 10 minute timer runs out or the StopLogging
+ // function is called. The RtcEventLog takes ownership of the supplied
+ // rtc::PlatformFile.
+ virtual bool StartLogging(rtc::PlatformFile& log_file) = 0;
the sun 2015/10/14 13:36:16 Are we lacking a unit test for this function?
the sun 2015/10/14 13:36:16 Send this in by value instead. Non-const reference
ivoc 2015/10/15 15:36:14 There is indeed no unit test for this one, however
ivoc 2015/10/15 15:36:14 Done.
the sun 2015/10/15 16:15:14 sgtm
+
virtual void StopLogging() = 0;
// Logs configuration information for webrtc::VideoReceiveStream

Powered by Google App Engine
This is Rietveld 408576698