browser/modules/offlineAppCache.jsm
author Joel Maher <jmaher@mozilla.com>
Mon, 12 Nov 2012 07:56:34 -0500
changeset 112987 e960dece2a232b9a7d0c1f58486b69d93d85b726
parent 111947 5ce71981e005a52d4cb0b831ad3db9284f2fb356
child 148125 0c91d9aa9476a9c2c6eb01e6142267d7987977e2
permissions -rw-r--r--
Bug 737961 - add reftest manifest conditions for height width. r=dbaron

/* 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) {}
  }
};