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/. */
5 #ifndef MERGED_COMPARTMENT
9 this.EXPORTED_SYMBOLS = ["Metrics"];
11 const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
13 const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000;
17 // We concatenate the JSMs together to eliminate compartment overhead.
18 // This is a giant hack until compartment overhead is no longer an
20 #define MERGED_COMPARTMENT
22 #include providermanager.jsm
24 #include dataprovider.jsm
30 ProviderManager: ProviderManager,
31 DailyValues: DailyValues,
32 Measurement: Measurement,
34 Storage: MetricsStorageBackend,
35 dateToDays: dateToDays,
36 daysToDate: daysToDate,