|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 "use strict"; |
|
6 |
|
7 #ifndef MERGED_COMPARTMENT |
|
8 |
|
9 this.EXPORTED_SYMBOLS = ["Metrics"]; |
|
10 |
|
11 const {classes: Cc, interfaces: Ci, utils: Cu} = Components; |
|
12 |
|
13 const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000; |
|
14 |
|
15 #endif |
|
16 |
|
17 // We concatenate the JSMs together to eliminate compartment overhead. |
|
18 // This is a giant hack until compartment overhead is no longer an |
|
19 // issue. |
|
20 #define MERGED_COMPARTMENT |
|
21 |
|
22 #include providermanager.jsm |
|
23 ; |
|
24 #include dataprovider.jsm |
|
25 ; |
|
26 #include storage.jsm |
|
27 ; |
|
28 |
|
29 this.Metrics = { |
|
30 ProviderManager: ProviderManager, |
|
31 DailyValues: DailyValues, |
|
32 Measurement: Measurement, |
|
33 Provider: Provider, |
|
34 Storage: MetricsStorageBackend, |
|
35 dateToDays: dateToDays, |
|
36 daysToDate: daysToDate, |
|
37 }; |
|
38 |