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

Side by Side 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: all works Created 6 years, 5 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 chrome.logPrivate API to retrieve log information from multiple 5 // Use chrome.logPrivate API to retrieve log information from multiple
6 // resources in a consistent format. 6 // resources in a consistent format.
7 namespace logPrivate { 7 namespace logPrivate {
8 8
9 // A filter class that filters log entries by different fields 9 // A filter class that filters log entries by different fields
10 dictionary Filter { 10 dictionary Filter {
(...skipping 28 matching lines...) Expand all
39 // The class that is returned to callback function. 39 // The class that is returned to callback function.
40 dictionary Result { 40 dictionary Result {
41 // The filter specified to filter log result. 41 // The filter specified to filter log result.
42 Filter filter; 42 Filter filter;
43 // Log entries returned based on the filter. 43 // Log entries returned based on the filter.
44 LogEntry[] data; 44 LogEntry[] data;
45 }; 45 };
46 46
47 callback GetHistoricalCallback = void (Result res); 47 callback GetHistoricalCallback = void (Result res);
48 48
49 callback DumpLogsCallback = void ([instanceOf=FileEntry] object logs);
50
51 // The type of the events to be recorded.
52 enum EventType { network };
53
49 interface Functions { 54 interface Functions {
50 // Get the existing logs from ChromeOS system. 55 // Get the existing logs from ChromeOS system.
51 static void getHistorical(Filter filter, GetHistoricalCallback callback); 56 static void getHistorical(Filter filter, GetHistoricalCallback callback);
52 static void startNetInternalsWatch(); 57 static void startNetInternalsWatch();
53 static void stopNetInternalsWatch(); 58 static void stopNetInternalsWatch();
59
60 static void startEventRecorder(EventType type);
61 static void stopEventRecorder(EventType type);
62 static void dumpLogs(DumpLogsCallback callback);
54 }; 63 };
55 64
56 interface Events { 65 interface Events {
57 static void onAddNetInternalsEntries(object[] entries); 66 static void onAddNetInternalsEntries(object[] entries);
58 }; 67 };
59 }; 68 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698