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

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: 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 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;
(...skipping 10 matching lines...) Expand all
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 30
31 // This contains information about the result of 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
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 invoked once recording starts and will report
137 // that recording has not stopped.
138 // If |seconds| is negative, startAudioDebugRecordings() fails.
139 static void startAudioDebugRecordings(RequestInfo request,
140 DOMString securityOrigin,
141 long seconds,
142 AudioDebugRecordingsCallback callback);
143
144 // Stops audio debug recordings. |callback| is invoked once recording
145 // stops. If there is no recording in progress, stopAudioDebugRecordings()
146 // fails.
147 static void stopAudioDebugRecordings(RequestInfo request,
148 DOMString securityOrigin,
149 AudioDebugRecordingsCallback callback);
114 }; 150 };
115 }; 151 };
OLDNEW
« 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