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

Unified Diff: chrome/common/extensions/api/log_private.idl

Issue 329853010: Additional methods for chrome.logPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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/log_private.idl
diff --git a/chrome/common/extensions/api/log_private.idl b/chrome/common/extensions/api/log_private.idl
index 454d18fbcda06c2c85442e49e1ae539e4e4ef81f..10bf641f69ebe5d269393e3fcf625ecbebfba6fe 100644
--- a/chrome/common/extensions/api/log_private.idl
+++ b/chrome/common/extensions/api/log_private.idl
@@ -46,11 +46,20 @@ namespace logPrivate {
callback GetHistoricalCallback = void (Result res);
+ callback DumpLogsCallback = void ([instanceOf=FileEntry] object logs);
+
+ // The type of the events to be recorded.
+ enum EventType { network };
+
interface Functions {
// Get the existing logs from ChromeOS system.
static void getHistorical(Filter filter, GetHistoricalCallback callback);
static void startNetInternalsWatch();
static void stopNetInternalsWatch();
+
+ static void startEventRecorder(EventType type);
+ static void stopEventRecorder(EventType type);
+ static void dumpLogs(DumpLogsCallback callback);
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698