|
1 .. _data_reporting_service: |
|
2 |
|
3 ====================== |
|
4 Data Reporting Service |
|
5 ====================== |
|
6 |
|
7 ``/services/datareporting`` contains files related to an XPCOM service |
|
8 that collects and reports data within Gecko applications. |
|
9 |
|
10 The important files in this directory are: |
|
11 |
|
12 DataReportingService.js |
|
13 An XPCOM service that coordinates collection and reporting of data. |
|
14 |
|
15 policy.jsm |
|
16 A module containing the logic for coordinating and driving collection |
|
17 and upload of data. |
|
18 |
|
19 sessions.jsm |
|
20 Records Gecko application session history. This is loaded as part of |
|
21 the XPCOM service because it needs to capture state from very early in |
|
22 the application lifecycle. Bug 841561 tracks implementing this in C++. |
|
23 |
|
24 There is other code in the tree that collects and uploads data. The |
|
25 original intent of this directory and XPCOM service was to serve as a |
|
26 focal point for the coordination of all this activity so that it could |
|
27 all be done consistently and properly. This vision may or may not be fully |
|
28 realized. |