#include <stddef.h> // size_t
#include <stdio.h> // FILE
+#include "webrtc/base/platform_file.h"
#include "webrtc/common.h"
#include "webrtc/typedefs.h"
// of |handle| and closes it at StopDebugRecording().
virtual int StartDebugRecording(FILE* handle) = 0;
+ // Same as above but uses an existing PlatformFile handle. Takes ownership
+ // of |handle| and closes it at StopDebugRecording().
+ // TODO(xians): Make this interface pure virtual.
+ virtual int StartDebugRecordingForPlatformFile(rtc::PlatformFile handle) {
+ return -1;
+ }
+
// Stops recording debugging information, and closes the file. Recording
// cannot be resumed in the same file (without overwriting it).
virtual int StopDebugRecording() = 0;