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

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: Initial incomplete version. Created 5 years, 3 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..57b523ff467b207a79e93e81a4e30cd82aa7b12e 100644
--- a/webrtc/call/rtc_event_log.h
+++ b/webrtc/call/rtc_event_log.h
@@ -11,6 +11,8 @@
#ifndef WEBRTC_CALL_RTC_EVENT_LOG_H_
#define WEBRTC_CALL_RTC_EVENT_LOG_H_
+#include <stdio.h>
+
#include <string>
#include "webrtc/base/scoped_ptr.h"
@@ -41,6 +43,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 indefinitely until the StopLogging() function is called.
+ // This function uses an already opened file pointer as input, and will return
+ // 0 on success.
+ virtual int StartLogging(FILE* log_file) = 0;
+
virtual void StopLogging() = 0;
// Logs configuration information for webrtc::VideoReceiveStream

Powered by Google App Engine
This is Rietveld 408576698