browser/modules/offlineAppCache.jsm
author Phil Ringnalda <philringnalda@gmail.com>
Mon, 15 Apr 2013 12:55:38 -0700
changeset 128824 b85daec2b90caecbe2e25daaeb37342cd55871e0
parent 111947 5ce71981e005a52d4cb0b831ad3db9284f2fb356
child 148125 0c91d9aa9476a9c2c6eb01e6142267d7987977e2
permissions -rw-r--r--
Back out a5a1dd3bd8ae (bug 860029) for stupidorange

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