Upstream version 11.39.250.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_processing / include / audio_processing.h
index 30f0d9c..10d2b8b 100644 (file)
@@ -14,6 +14,7 @@
 #include <stddef.h>  // size_t
 #include <stdio.h>  // FILE
 
+#include "webrtc/base/platform_file.h"
 #include "webrtc/common.h"
 #include "webrtc/typedefs.h"
 
@@ -325,6 +326,13 @@ class AudioProcessing {
   // 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;