Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: chrome/common/extensions/api/webrtc_logging_private.idl

Issue 23885002: Add WebRTC logging extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 dictionary UploadResult {
9 // The report ID for the uploaded log. Will be empty if not successful.
10 DOMString reportId;
11 };
12
13 callback GenericDoneCallback = void ();
14 callback UploadDoneCallback = void (UploadResult result);
15
16 interface Functions {
17 // Sets additional custom meta data that will be uploaded along with the
18 // log. |metaData| is a dictionary of the metadata (key, value).
19 static void setMetaData(object metaData, GenericDoneCallback callback);
20
21 // Starts logging. If logging has already been started for this render
22 // process, the call will be ignored. |appSessionId| is the unique session
23 // ID which will be added to the log.
24 static void start(GenericDoneCallback callback);
25
26 // Sets whether the log should be uploaded automatically for the case when
27 // the render process goes away (tab is closed or crashes) and stop has not
28 // been called before that. If |shouldUpload| is true it will be uploaded,
29 // otherwise it will be discarded. The default setting is to discard it.
30 static void setUploadOnRenderClose(boolean shouldUpload);
31
32 // Stops logging. After stop has finished, either upload() or discard()
33 // should be called, otherwise the log will be kept in memory until the
34 // render process is closed or logging restarted.
35 static void stop(GenericDoneCallback callback);
36
37 // Uploads the log. Logging must be stopped before this function is called.
38 static void upload(UploadDoneCallback callback);
39
40 // Discards the log. Logging must be stopped before this function is called.
41 static void discard(GenericDoneCallback callback);
42 };
43 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698