| OLD | NEW |
| 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 Loading... |
| 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); | 49 callback DumpLogsCallback = void ([instanceOf=FileSystemFileEntry] object logs
); |
| 50 | 50 |
| 51 callback CompletionCallback = void (); | 51 callback CompletionCallback = void (); |
| 52 | 52 |
| 53 // The type of the events to be recorded. | 53 // The type of the events to be recorded. |
| 54 enum EventType { network }; | 54 enum EventType { network }; |
| 55 | 55 |
| 56 // The type of the event sink where captured events will be sent. | 56 // The type of the event sink where captured events will be sent. |
| 57 enum EventSink { | 57 enum EventSink { |
| 58 // Events will be sent to the webapp via onCapturedEvents. | 58 // Events will be sent to the webapp via onCapturedEvents. |
| 59 capture, | 59 capture, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 81 // Contains webapp specific logs including those collected with | 81 // Contains webapp specific logs including those collected with |
| 82 // startEventRecorder(..., sink="file") call. | 82 // startEventRecorder(..., sink="file") call. |
| 83 static void dumpLogs(DumpLogsCallback callback); | 83 static void dumpLogs(DumpLogsCallback callback); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 interface Events { | 86 interface Events { |
| 87 // Receives events of type which is currently being captured. | 87 // Receives events of type which is currently being captured. |
| 88 static void onCapturedEvents(object[] entries); | 88 static void onCapturedEvents(object[] entries); |
| 89 }; | 89 }; |
| 90 }; | 90 }; |
| OLD | NEW |