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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/webrtc_logging_private.idl
diff --git a/chrome/common/extensions/api/webrtc_logging_private.idl b/chrome/common/extensions/api/webrtc_logging_private.idl
index 172035a5787723e71e90d99da183aef48dca2918..5c72c9597ba15e33f52a02f2644256eb8bcc9772 100644
--- a/chrome/common/extensions/api/webrtc_logging_private.idl
+++ b/chrome/common/extensions/api/webrtc_logging_private.idl
@@ -67,6 +67,23 @@ namespace webrtcLoggingPrivate {
DOMString securityOrigin,
GenericDoneCallback callback);
+ // Stores the current log without uploading. The log may stay around for
+ // as much as 5 days. The application has the option of supplying an id
+ // for uniquely identifying the log for later upload via a call to
+ // uploadStored().
+ static void store(RequestInfo request,
+ DOMString securityOrigin,
+ DOMString logId,
+ GenericDoneCallback callback);
+
+ // Uploads a previously kept log that was stored via a call to store().
+ // The caller needs to know the logId as was originally provided in the
+ // call to store().
+ static void uploadStored(RequestInfo request,
+ DOMString securityOrigin,
+ DOMString logId,
+ UploadDoneCallback callback);
+
// Uploads the log and the RTP dumps, if they exist. Logging and RTP dumping
// must be stopped before this function is called.
static void upload(RequestInfo request,
« no previous file with comments | « chrome/browser/media/webrtc_logging_handler_host.cc ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698