services/metrics/Metrics.jsm

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 "use strict";
     7 #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;
    15 #endif
    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
    22 #include providermanager.jsm
    23 ;
    24 #include dataprovider.jsm
    25 ;
    26 #include storage.jsm
    27 ;
    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 };

mercurial