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 dictionary AecDumpInfo { | |
32 // Absolute path prefix for the AEC dump. Empty if not successful. | |
33 DOMString prefixPath; | |
34 }; | |
35 | |
36 | |
31 callback GenericDoneCallback = void (); | 37 callback GenericDoneCallback = void (); |
38 callback AecDumpStartedCallback = void (AecDumpInfo info); | |
32 callback UploadDoneCallback = void (UploadResult result); | 39 callback UploadDoneCallback = void (UploadResult result); |
33 | 40 |
34 interface Functions { | 41 interface Functions { |
35 // For all functions, |request| determines which render process to apply | 42 // For all functions, |request| determines which render process to apply |
36 // the operation on. |request| identifies the requesting process. | 43 // the operation on. |request| identifies the requesting process. |
37 // |securityOrigin| is the security origin for the tab identified by |tabId| | 44 // |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 | 45 // and is used for verifying that the tab is the correct one and has not |
39 // been navigated away from. | 46 // been navigated away from. |
40 | 47 |
41 // Sets additional custom meta data that will be uploaded along with the | 48 // 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); | 111 GenericDoneCallback callback); |
105 | 112 |
106 // Stops RTP dumping. After stop has finished, the dumps will be | 113 // 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 | 114 // uploaded with the log if upload is called. Otherwise, the dumps will be |
108 // discarded. | 115 // discarded. |
109 static void stopRtpDump(RequestInfo request, | 116 static void stopRtpDump(RequestInfo request, |
110 DOMString securityOrigin, | 117 DOMString securityOrigin, |
111 boolean incoming, | 118 boolean incoming, |
112 boolean outgoing, | 119 boolean outgoing, |
113 GenericDoneCallback callback); | 120 GenericDoneCallback callback); |
121 | |
122 // Starts an AEC Dump for all renderer processes with open peer connections. | |
123 // One file per renderer process will be created, with the renderer | |
124 // process ID appended to a predefined file path. | |
125 // |seconds| indicates how many seconds of audio to record. If |seconds| | |
126 // is zero, recording will continue until stopAecDump() is explicitly called . | |
tommi (sloooow) - chröme
2015/12/17 11:03:26
>80
Guido Urdaneta
2015/12/17 14:35:42
Done.
| |
127 // If |seconds| is negative, startAecDump() will fail. | |
128 // The base filename for dumps is returned to |callback|. | |
129 static void startAecDump(long seconds, AecDumpStartedCallback callback); | |
130 //static void startAecDump(optional long seconds, [Default=Undefined] option al GenericDoneCallback callback); | |
tommi (sloooow) - chröme
2015/12/17 11:03:26
remove?
Guido Urdaneta
2015/12/17 14:35:42
Done.
| |
131 | |
132 // Stops all AEC Dumps for all renderer processes. | |
133 static void stopAecDump(GenericDoneCallback callback); | |
114 }; | 134 }; |
115 }; | 135 }; |
OLD | NEW |