browser/modules/offlineAppCache.jsm
author Vicamo Yang <vyang@mozilla.com>
Wed, 31 Oct 2012 16:35:11 +0800
changeset 111874 5bf3abe91210f94d5d92ba95e114181e366d82ea
parent 111786 67cb43bb8865ecbcb79c2ea04a0494fd223cc69d
child 111945 5ce71981e005a52d4cb0b831ad3db9284f2fb356
permissions -rw-r--r--
Backout 67cb43bb8865: Breaks B2G Marionette

/* 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/. */
 
let EXPORTED_SYMBOLS = ["OfflineAppCacheHelper"];

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

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