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; |
(...skipping 10 matching lines...) Expand all Loading... | |
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 an AEC dump operation. | |
32 // didStop=false and isManualStop=false means startAecDump() was called | |
Henrik Grunell
2015/12/18 12:34:21
Could these combinations be an enum(-ish variable)
Guido Urdaneta
2015/12/18 18:38:58
I tried it, but the problem is that the handler wo
| |
33 // without a time limit. | |
34 // didStop=false and isManualStop=true means stopAecDump() was called, but no | |
35 // AEC dump was in progress. | |
36 // didStop=true and isManualStop=false means an AEC Dump was stopped | |
37 // automatically due to hitting the time limit. | |
38 // didStop=true and isManualStop=true means an AEC Dump was stopped by a call | |
39 // to stopAecDump(). | |
40 dictionary AecDumpInfo { | |
Henrik Grunell
2015/12/18 12:34:21
Rename "AecDump" to "AudioDebugRecordings" everywh
Guido Urdaneta
2015/12/18 18:38:58
Done.
| |
41 // Indicates if an AEC dump was actually stopped. | |
42 boolean didStop; | |
43 // Indicates if a manual stop was attempted through a stopAecDump() call. | |
44 boolean isManualStop; | |
45 // Absolute path prefix for the AEC dump. | |
46 DOMString prefixPath; | |
47 }; | |
48 | |
49 | |
31 callback GenericDoneCallback = void (); | 50 callback GenericDoneCallback = void (); |
51 callback AecDumpCallback = void (AecDumpInfo info); | |
32 callback UploadDoneCallback = void (UploadResult result); | 52 callback UploadDoneCallback = void (UploadResult result); |
33 | 53 |
34 interface Functions { | 54 interface Functions { |
35 // For all functions, |request| determines which render process to apply | 55 // For all functions, |request| determines which render process to apply |
36 // the operation on. |request| identifies the requesting process. | 56 // the operation on. |request| identifies the requesting process. |
37 // |securityOrigin| is the security origin for the tab identified by |tabId| | 57 // |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 | 58 // and is used for verifying that the tab is the correct one and has not |
39 // been navigated away from. | 59 // been navigated away from. |
40 | 60 |
41 // Sets additional custom meta data that will be uploaded along with the | 61 // 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); | 124 GenericDoneCallback callback); |
105 | 125 |
106 // Stops RTP dumping. After stop has finished, the dumps will be | 126 // 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 | 127 // uploaded with the log if upload is called. Otherwise, the dumps will be |
108 // discarded. | 128 // discarded. |
109 static void stopRtpDump(RequestInfo request, | 129 static void stopRtpDump(RequestInfo request, |
110 DOMString securityOrigin, | 130 DOMString securityOrigin, |
111 boolean incoming, | 131 boolean incoming, |
112 boolean outgoing, | 132 boolean outgoing, |
113 GenericDoneCallback callback); | 133 GenericDoneCallback callback); |
134 | |
135 // Starts an AEC Dump for all renderer processes with open peer connections. | |
Henrik Grunell
2015/12/18 12:34:21
The more general description is that there's one f
Guido Urdaneta
2015/12/18 18:38:58
Given that we are now recording for a single proce
| |
136 // One file per renderer process will be created, with the renderer | |
137 // process ID appended to a predefined file path. | |
138 // |seconds| indicates how many seconds of audio to record. If |seconds| is | |
139 // zero, recording will continue until stopAecDump() is explicitly called. | |
140 // If |seconds| is negative, startAecDump() will fail. | |
141 // If |seconds| is zero |callback| is invoked immediately after the AEC | |
142 // dump starts. Otherwise, |callback| is invoked when the AEC dump is | |
143 // stopped. | |
144 static void startAecDump(long seconds, AecDumpCallback callback); | |
145 | |
146 // Stops all AEC Dumps for all renderer processes. | |
147 static void stopAecDump(AecDumpCallback callback); | |
114 }; | 148 }; |
115 }; | 149 }; |
OLD | NEW |