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 [nodoc] namespace webrtcLoggingPrivate { | 7 [nodoc] 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 DOMString securityOrigin, | 50 DOMString securityOrigin, |
51 boolean shouldUpload); | 51 boolean shouldUpload); |
52 | 52 |
53 // Stops logging. After stop has finished, either upload() or discard() | 53 // Stops logging. After stop has finished, either upload() or discard() |
54 // should be called, otherwise the log will be kept in memory until the | 54 // should be called, otherwise the log will be kept in memory until the |
55 // render process is closed or logging restarted. | 55 // render process is closed or logging restarted. |
56 static void stop(long tabId, | 56 static void stop(long tabId, |
57 DOMString securityOrigin, | 57 DOMString securityOrigin, |
58 GenericDoneCallback callback); | 58 GenericDoneCallback callback); |
59 | 59 |
60 // Uploads the log. Logging must be stopped before this function is called. | 60 // Uploads the log and the RTP dumps. Logging must be stopped before this |
vrk (LEFT CHROMIUM)
2014/05/02 18:13:48
Nit: maybe clarify, "the RTP dumps, if they exist.
jiayl
2014/05/02 21:22:43
Done.
| |
61 // function is called. | |
61 static void upload(long tabId, | 62 static void upload(long tabId, |
62 DOMString securityOrigin, | 63 DOMString securityOrigin, |
63 UploadDoneCallback callback); | 64 UploadDoneCallback callback); |
64 | 65 |
65 // Discards the log. Logging must be stopped before this function is called. | 66 // Discards the log. Logging must be stopped before this function is called. |
66 static void discard(long tabId, | 67 static void discard(long tabId, |
67 DOMString securityOrigin, | 68 DOMString securityOrigin, |
68 GenericDoneCallback callback); | 69 GenericDoneCallback callback); |
70 | |
71 // Starts RTP dumping. If it has already been started for this render | |
72 // process, the call will be ignored. | |
73 static void startRtpDump(long tabId, | |
74 DOMString securityOrigin, | |
75 boolean incoming, | |
76 boolean outgoing, | |
77 GenericDoneCallback callback); | |
78 | |
79 // Stops RTP dumping. After stop has finished, the dumps will be | |
80 // uploaded with the log if upload is called. Otherwise, the dumps will be | |
81 // discarded. | |
82 static void stopRtpDump(long tabId, | |
83 DOMString securityOrigin, | |
84 boolean incoming, | |
85 boolean outgoing, | |
86 GenericDoneCallback callback); | |
69 }; | 87 }; |
70 }; | 88 }; |
OLD | NEW |