Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 31 // Sets additional custom meta data that will be uploaded along with the | 31 // Sets additional custom meta data that will be uploaded along with the |
| 32 // log. |metaData| is a dictionary of the metadata (key, value). | 32 // log. |metaData| is a dictionary of the metadata (key, value). |
| 33 static void setMetaData(long tabId, | 33 static void setMetaData(long tabId, |
| 34 DOMString securityOrigin, | 34 DOMString securityOrigin, |
| 35 MetaDataEntry[] metaData, | 35 MetaDataEntry[] metaData, |
| 36 GenericDoneCallback callback); | 36 GenericDoneCallback callback); |
| 37 | 37 |
| 38 // Starts logging. If logging has already been started for this render | 38 // Starts logging. If logging has already been started for this render |
| 39 // process, the call will be ignored. |appSessionId| is the unique session | 39 // process, the call will be ignored. |appSessionId| is the unique session |
| 40 // ID which will be added to the log. | 40 // ID which will be added to the log. |
| 41 static void start(long tabId, | 41 static void start(long tabId, |
|
Henrik Grunell
2014/05/05 14:15:09
I'd like "start, "stop" and "discard" to be rename
jiayl
2014/05/05 16:26:54
Ack. https://code.google.com/p/chromium/issues/det
| |
| 42 DOMString securityOrigin, | 42 DOMString securityOrigin, |
| 43 GenericDoneCallback callback); | 43 GenericDoneCallback callback); |
| 44 | 44 |
| 45 // Sets whether the log should be uploaded automatically for the case when | 45 // Sets whether the log should be uploaded automatically for the case when |
| 46 // the render process goes away (tab is closed or crashes) and stop has not | 46 // the render process goes away (tab is closed or crashes) and stop has not |
| 47 // been called before that. If |shouldUpload| is true it will be uploaded, | 47 // been called before that. If |shouldUpload| is true it will be uploaded, |
| 48 // otherwise it will be discarded. The default setting is to discard it. | 48 // otherwise it will be discarded. The default setting is to discard it. |
| 49 static void setUploadOnRenderClose(long tabId, | 49 static void setUploadOnRenderClose(long tabId, |
| 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, if they exist. Logging and RTP dumping |
| 61 // must be stopped before this 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, | |
|
Henrik Grunell
2014/05/05 14:15:09
Is |incoming| and |outgoing| necessary? Maybe simp
jiayl
2014/05/05 16:26:54
The existing UI for the GTP allows the user to che
| |
| 85 boolean outgoing, | |
| 86 GenericDoneCallback callback); | |
| 69 }; | 87 }; |
| 70 }; | 88 }; |
| OLD | NEW |