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

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

Issue 927233005: Adding support for storing webrtc logs locally with an extension supplied unique id, for later uplo… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 DOMString securityOrigin, 60 DOMString securityOrigin,
61 boolean shouldUpload); 61 boolean shouldUpload);
62 62
63 // Stops logging. After stop has finished, either upload() or discard() 63 // Stops logging. After stop has finished, either upload() or discard()
64 // should be called, otherwise the log will be kept in memory until the 64 // should be called, otherwise the log will be kept in memory until the
65 // render process is closed or logging restarted. 65 // render process is closed or logging restarted.
66 static void stop(RequestInfo request, 66 static void stop(RequestInfo request,
67 DOMString securityOrigin, 67 DOMString securityOrigin,
68 GenericDoneCallback callback); 68 GenericDoneCallback callback);
69 69
70 // Stores the current log without uploading. The log may stay around for
71 // as much as 5 days. The application has the option of supplying an id
perkj_chrome 2015/02/19 11:55:53 nit remove extra space
tommi (sloooow) - chröme 2015/02/19 13:31:41 Done.
72 // for uniquely identifying the log for later upload via a call to
73 // uploadStored().
74 static void store(RequestInfo request,
75 DOMString securityOrigin,
76 DOMString logId,
77 GenericDoneCallback callback);
78
79 // Uploads a previously kept log that was stored via a call to store().
80 // The caller needs to know the logId as was originally provided in the
81 // call to store().
82 static void uploadStored(RequestInfo request,
83 DOMString securityOrigin,
84 DOMString logId,
85 UploadDoneCallback callback);
86
70 // Uploads the log and the RTP dumps, if they exist. Logging and RTP dumping 87 // Uploads the log and the RTP dumps, if they exist. Logging and RTP dumping
71 // must be stopped before this function is called. 88 // must be stopped before this function is called.
72 static void upload(RequestInfo request, 89 static void upload(RequestInfo request,
73 DOMString securityOrigin, 90 DOMString securityOrigin,
74 UploadDoneCallback callback); 91 UploadDoneCallback callback);
75 92
76 // Discards the log. Logging must be stopped before this function is called. 93 // Discards the log. Logging must be stopped before this function is called.
77 static void discard(RequestInfo request, 94 static void discard(RequestInfo request,
78 DOMString securityOrigin, 95 DOMString securityOrigin,
79 GenericDoneCallback callback); 96 GenericDoneCallback callback);
80 97
81 // Starts RTP dumping. If it has already been started for this render 98 // Starts RTP dumping. If it has already been started for this render
82 // process, the call will be ignored. 99 // process, the call will be ignored.
83 static void startRtpDump(RequestInfo request, 100 static void startRtpDump(RequestInfo request,
84 DOMString securityOrigin, 101 DOMString securityOrigin,
85 boolean incoming, 102 boolean incoming,
86 boolean outgoing, 103 boolean outgoing,
87 GenericDoneCallback callback); 104 GenericDoneCallback callback);
88 105
89 // Stops RTP dumping. After stop has finished, the dumps will be 106 // Stops RTP dumping. After stop has finished, the dumps will be
90 // uploaded with the log if upload is called. Otherwise, the dumps will be 107 // uploaded with the log if upload is called. Otherwise, the dumps will be
91 // discarded. 108 // discarded.
92 static void stopRtpDump(RequestInfo request, 109 static void stopRtpDump(RequestInfo request,
93 DOMString securityOrigin, 110 DOMString securityOrigin,
94 boolean incoming, 111 boolean incoming,
95 boolean outgoing, 112 boolean outgoing,
96 GenericDoneCallback callback); 113 GenericDoneCallback callback);
97 }; 114 };
98 }; 115 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698