Index: chrome/common/extensions/api/webrtc_logging_private.idl |
diff --git a/chrome/common/extensions/api/webrtc_logging_private.idl b/chrome/common/extensions/api/webrtc_logging_private.idl |
index 5c72c9597ba15e33f52a02f2644256eb8bcc9772..004badf174c50257c32bf45766ffccc7e19afadb 100644 |
--- a/chrome/common/extensions/api/webrtc_logging_private.idl |
+++ b/chrome/common/extensions/api/webrtc_logging_private.idl |
@@ -27,8 +27,24 @@ namespace webrtcLoggingPrivate { |
// webview. |
long? guestProcessId; |
}; |
+ |
+ // This contains information about the result of an audio debug recordings. |
Marijn Kruisselbrink
2015/12/18 23:40:10
"an recordings" is not a thing. Either make it sin
Guido Urdaneta
2015/12/19 00:32:42
Done.
|
+ dictionary AudioDebugRecordingsInfo { |
Marijn Kruisselbrink
2015/12/18 23:40:10
AudioDebugRecordings sounds really weird to me. Is
Guido Urdaneta
2015/12/19 00:32:42
The underlying mechanism this is based on uses plu
|
+ // Absolute path prefix for the files with the audio debug recordings. |
+ DOMString prefixPath; |
+ |
+ // Indicates if recording was stopped. |
+ boolean didStop; |
+ |
+ // Indicates if recording was stopped manually through a |
+ // stopAudioDebugRecordings() call. |
+ boolean didManualStop; |
+ }; |
+ |
callback GenericDoneCallback = void (); |
+ callback AudioDebugRecordingsCallback = |
+ void (AudioDebugRecordingsInfo info); |
callback UploadDoneCallback = void (UploadResult result); |
interface Functions { |
@@ -111,5 +127,24 @@ namespace webrtcLoggingPrivate { |
boolean incoming, |
boolean outgoing, |
GenericDoneCallback callback); |
+ |
+ // Starts audio debug recordings. |
+ // |seconds| indicates how many seconds of audio to record. |callback| |
+ // is invoked once recording stops. |
+ // If |seconds| is zero, recording will continue until |
+ // stopAudioDebugRecordings() is explicitly called. In this case, |
+ // |callback| is not invoked. |
Marijn Kruisselbrink
2015/12/18 23:40:10
If |callback| is only sometimes invoked, how do yo
Guido Urdaneta
2015/12/19 00:32:42
Fixed the comment. I had fixed this in the code, b
|
+ // If |seconds| is negative, startAudioDebugRecordings() fails. |
+ static void startAudioDebugRecordings(RequestInfo request, |
+ DOMString securityOrigin, |
+ long seconds, |
+ AudioDebugRecordingsCallback callback); |
+ |
+ // Stops audio debug recordings. |callback| is invoked once recording |
+ // stops. If there is no recordig in progress, stopAudioDebugRecordings() |
+ // fails. |
+ static void stopAudioDebugRecordings(RequestInfo request, |
+ DOMString securityOrigin, |
+ AudioDebugRecordingsCallback callback); |
}; |
}; |