browser/modules/offlineAppCache.jsm
author Boris Zbarsky <bzbarsky@mit.edu>
Thu, 10 Jan 2013 10:49:07 -0500
changeset 118414 1a7ca1f81bd21b1d678762a9586287294b25d378
parent 111947 5ce71981e005a52d4cb0b831ad3db9284f2fb356
child 148125 0c91d9aa9476a9c2c6eb01e6142267d7987977e2
permissions -rw-r--r--
Bug 824237. Add support for "partial interface" to WebIDL parser. r=khuey

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