browser/modules/offlineAppCache.jsm
author Mike Hommey <mh+mozilla@glandium.org>
Fri, 04 Jan 2013 17:14:33 +0100
changeset 127476 0d1a01e16ce73ce3ead6744ce66abdc5ded8f2dd
parent 120594 5ce71981e005a52d4cb0b831ad3db9284f2fb356
child 162892 0c91d9aa9476a9c2c6eb01e6142267d7987977e2
permissions -rw-r--r--
Backout changeset 6656cdc8b20d (bug 824330) because of android and b2g bustage on clobber builds

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