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

Side by Side 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: tommi and grunell's comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Use the <code>chrome.webrtcLoggingPrivate</code> API to control diagnostic 5 // Use the <code>chrome.webrtcLoggingPrivate</code> API to control diagnostic
6 // WebRTC logging. 6 // WebRTC logging.
7 namespace webrtcLoggingPrivate { 7 namespace webrtcLoggingPrivate {
8 dictionary MetaDataEntry { 8 dictionary MetaDataEntry {
9 // The meta data entry key. 9 // The meta data entry key.
10 DOMString key; 10 DOMString key;
11 11
12 // The meta data entry value. 12 // The meta data entry value.
13 DOMString value; 13 DOMString value;
14 }; 14 };
15 15
16 dictionary UploadResult { 16 dictionary UploadResult {
17 // The report ID for the uploaded log. Will be empty if not successful. 17 // The report ID for the uploaded log. Will be empty if not successful.
18 DOMString reportId; 18 DOMString reportId;
19 }; 19 };
20 20
21 dictionary RequestInfo { 21 dictionary RequestInfo {
22 // The tab identifier from the chrome.tabs API, if the request is from a 22 // The tab identifier from the chrome.tabs API, if the request is from a
23 // tab. 23 // tab.
24 long? tabId; 24 long? tabId;
25 25
26 // The guest process id for the requester, if the request is from a 26 // The guest process id for the requester, if the request is from a
27 // webview. 27 // webview.
28 long? guestProcessId; 28 long? guestProcessId;
29 }; 29 };
30
31 // This contains information about the result of an audio debug recordings.
32 dictionary AudioDebugRecordingsInfo {
33 // Absolute path prefix for the files with the audio debug recordings.
34 DOMString prefixPath;
35
36 // Indicates if recording was stopped.
37 boolean didStop;
38
39 // Indicates if recording was stopped manually through a
40 // stopAudioDebugRecordings() call.
41 boolean didManualStop;
42 };
43
30 44
31 callback GenericDoneCallback = void (); 45 callback GenericDoneCallback = void ();
46 callback AudioDebugRecordingsCallback =
47 void (AudioDebugRecordingsInfo info);
32 callback UploadDoneCallback = void (UploadResult result); 48 callback UploadDoneCallback = void (UploadResult result);
33 49
34 interface Functions { 50 interface Functions {
35 // For all functions, |request| determines which render process to apply 51 // For all functions, |request| determines which render process to apply
36 // the operation on. |request| identifies the requesting process. 52 // the operation on. |request| identifies the requesting process.
37 // |securityOrigin| is the security origin for the tab identified by |tabId| 53 // |securityOrigin| is the security origin for the tab identified by |tabId|
38 // and is used for verifying that the tab is the correct one and has not 54 // and is used for verifying that the tab is the correct one and has not
39 // been navigated away from. 55 // been navigated away from.
40 56
41 // Sets additional custom meta data that will be uploaded along with the 57 // Sets additional custom meta data that will be uploaded along with the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 GenericDoneCallback callback); 120 GenericDoneCallback callback);
105 121
106 // Stops RTP dumping. After stop has finished, the dumps will be 122 // Stops RTP dumping. After stop has finished, the dumps will be
107 // uploaded with the log if upload is called. Otherwise, the dumps will be 123 // uploaded with the log if upload is called. Otherwise, the dumps will be
108 // discarded. 124 // discarded.
109 static void stopRtpDump(RequestInfo request, 125 static void stopRtpDump(RequestInfo request,
110 DOMString securityOrigin, 126 DOMString securityOrigin,
111 boolean incoming, 127 boolean incoming,
112 boolean outgoing, 128 boolean outgoing,
113 GenericDoneCallback callback); 129 GenericDoneCallback callback);
130
131 // Starts audio debug recordings.
132 // |seconds| indicates how many seconds of audio to record. |callback|
133 // is invoked once recording stops.
134 // If |seconds| is zero, recording will continue until
135 // stopAudioDebugRecordings() is explicitly called. In this case,
136 // |callback| is not invoked.
137 // If |seconds| is negative, startAudioDebugRecordings() fails.
138 static void startAudioDebugRecordings(RequestInfo request,
139 DOMString securityOrigin,
140 long seconds,
141 AudioDebugRecordingsCallback callback);
142
143 // Stops audio debug recordings. |callback| is invoked once recording
144 // stops. If there is no recordig in progress, stopAudioDebugRecordings()
145 // fails.
146 static void stopAudioDebugRecordings(RequestInfo request,
147 DOMString securityOrigin,
148 AudioDebugRecordingsCallback callback);
114 }; 149 };
115 }; 150 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698