OLD | NEW |
---|---|
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. | |
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.
| |
32 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
| |
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 Loading... | |
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. | |
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
| |
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 }; |
OLD | NEW |