| 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 [use_movable_types=true] 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 { |
| 11 // Only logs from |sources| will be returned. | 11 // Only logs from |sources| will be returned. |
| 12 DOMString[] sources; | 12 DOMString[] sources; |
| 13 // Only logs created in [|start_timestamp|, |end_timestamp|] will | 13 // Only logs created in [|start_timestamp|, |end_timestamp|] will |
| 14 // be returned. | 14 // be returned. |
| 15 double start_timestamp; | 15 double start_timestamp; |
| 16 double end_timestamp; | 16 double end_timestamp; |
| 17 // Only logs have process name in |process| will be returned. | 17 // Only logs have process name in |process| will be returned. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |