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

Unified Diff: chrome/common/extensions/api/webrtc_logging_private.idl

Issue 1530863002: Allow audio debug recordings through a private API extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0f900f944402da663da9706a1914fad707cc5bfa 100644
--- a/chrome/common/extensions/api/webrtc_logging_private.idl
+++ b/chrome/common/extensions/api/webrtc_logging_private.idl
@@ -28,7 +28,23 @@ namespace webrtcLoggingPrivate {
long? guestProcessId;
};
+ // This contains information about the result of audio debug recordings.
+ dictionary AudioDebugRecordingsInfo {
+ // 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,25 @@ 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 invoked once recording starts and will report
+ // that recording has not stopped.
+ // 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 recording in progress, stopAudioDebugRecordings()
+ // fails.
+ static void stopAudioDebugRecordings(RequestInfo request,
+ DOMString securityOrigin,
+ AudioDebugRecordingsCallback callback);
};
};
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698