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

Unified Diff: webrtc/video_send_stream.h

Issue 2303273002: Expose Ivf logging through the native API (Closed)
Patch Set: Fix memory leak Created 4 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
« webrtc/video/video_send_stream.h ('K') | « webrtc/video_receive_stream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video_send_stream.h
diff --git a/webrtc/video_send_stream.h b/webrtc/video_send_stream.h
index afdec43c745cc2cc877b416ef5150f6d27c0cecb..5b0c041db0c1b57f427481c4e75121159d105e1e 100644
--- a/webrtc/video_send_stream.h
+++ b/webrtc/video_send_stream.h
@@ -13,8 +13,10 @@
#include <map>
#include <string>
+#include <utility>
#include <vector>
+#include "webrtc/base/platform_file.h"
#include "webrtc/common_types.h"
#include "webrtc/common_video/include/frame_callback.h"
#include "webrtc/config.h"
@@ -204,6 +206,15 @@ class VideoSendStream {
virtual Stats GetStats() = 0;
+ // Takes ownership of each file, is responsible for closing them later.
+ // Calling this method will close and finalize any current logs.
+ // Giving rtc::kInvalidPlatformFileValue in any position disables logging
+ // for the corresponding stream.
+ virtual void SetLogFiles(
+ rtc::PlatformFile file1 = rtc::kInvalidPlatformFileValue,
+ rtc::PlatformFile file2 = rtc::kInvalidPlatformFileValue,
+ rtc::PlatformFile file3 = rtc::kInvalidPlatformFileValue) = 0;
+
protected:
virtual ~VideoSendStream() {}
};
« webrtc/video/video_send_stream.h ('K') | « webrtc/video_receive_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698