browser/modules/offlineAppCache.jsm
author Paul Adenot <paul@paul.cx>
Mon, 10 Jun 2013 19:32:28 +0200
changeset 146894 f223d663d69136a1d710bbad5f6e1ced285b4189
parent 120594 5ce71981e005a52d4cb0b831ad3db9284f2fb356
child 162892 0c91d9aa9476a9c2c6eb01e6142267d7987977e2
permissions -rw-r--r--
Bug 865244 - Implement AudioContext.destination.maxChannelCount. r=ehsan

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
this.EXPORTED_SYMBOLS = ["OfflineAppCacheHelper"];

const Cc = Components.classes;
const Ci = Components.interfaces;

this.OfflineAppCacheHelper = {
  clear: function() {
    var cacheService = Cc["@mozilla.org/network/cache-service;1"].
                       getService(Ci.nsICacheService);
    try {
      cacheService.evictEntries(Ci.nsICache.STORE_OFFLINE);
    } catch(er) {}
  }
};