OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Use the <code>chrome.webrtcLoggingPrivate</code> API to control diagnostic |
| 6 // WebRTC logging. |
| 7 [nodoc] namespace webrtcLoggingPrivate { |
| 8 interface Functions { |
| 9 // Starts logging. If logging has already been started for this render |
| 10 // process, the call will be ignored. |appSessionId| is the unique session |
| 11 // ID which will be added to the log. |
| 12 static void start(DOMString appSessionId); |
| 13 |
| 14 // Sets whether the log should be uploaded automatically for the case when |
| 15 // the render process goes away (tab is closed or crashes) and stop has not |
| 16 // been called before that. If |shouldUpload| is true it will be uploaded, |
| 17 // otherwise it will be discarded. The default setting is to discard it. |
| 18 static void setUploadOnRenderClose(boolean shouldUpload); |
| 19 |
| 20 // Stops logging and, if |upload| is true, uploads the log. If |upload| is |
| 21 // false the log is discarded. |
| 22 static void stop(boolean upload); |
| 23 }; |
| 24 }; |
OLD | NEW |