michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: "use strict"; michael@0: michael@0: #ifndef MERGED_COMPARTMENT michael@0: michael@0: this.EXPORTED_SYMBOLS = ["Metrics"]; michael@0: michael@0: const {classes: Cc, interfaces: Ci, utils: Cu} = Components; michael@0: michael@0: const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000; michael@0: michael@0: #endif michael@0: michael@0: // We concatenate the JSMs together to eliminate compartment overhead. michael@0: // This is a giant hack until compartment overhead is no longer an michael@0: // issue. michael@0: #define MERGED_COMPARTMENT michael@0: michael@0: #include providermanager.jsm michael@0: ; michael@0: #include dataprovider.jsm michael@0: ; michael@0: #include storage.jsm michael@0: ; michael@0: michael@0: this.Metrics = { michael@0: ProviderManager: ProviderManager, michael@0: DailyValues: DailyValues, michael@0: Measurement: Measurement, michael@0: Provider: Provider, michael@0: Storage: MetricsStorageBackend, michael@0: dateToDays: dateToDays, michael@0: daysToDate: daysToDate, michael@0: }; michael@0: