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
3 // found in the LICENSE file.
5 // Use chrome.logPrivate API to retrieve log information from multiple
6 // resources in a consistent format.
9 // A filter class that filters log entries by different fields
11 // Only logs from |sources| will be returned.
13 // Only logs created in [|start_timestamp|, |end_timestamp|] will
15 double start_timestamp
;
17 // Only logs have process name in |process| will be returned.
19 // Only logs have level in |level| will be returned.
21 // Private information will be scrubbed if |scrub| is true.
25 // The class that contains log information.
27 // The time of the log in milliseconds.
29 // The raw text of log.
31 // The name of the process that the log associated with.
33 // The ID of the process that the log associated with.
39 // The class that is returned to callback function.
41 // The filter specified to filter log result.
43 // Log entries returned based on the filter.
47 callback GetHistoricalCallback
= void (Result res
);
50 // Get the existing logs from ChromeOS system.
51 static
void getHistorical
(Filter filter
, GetHistoricalCallback
callback);
52 static
void startNetInternalsWatch
();
53 static
void stopNetInternalsWatch
();
57 static
void onAddNetInternalsEntries
(object[] entries
);