browser/modules/offlineAppCache.jsm
author Robert O'Callahan <robert@ocallahan.org>
Fri, 07 Dec 2012 12:58:13 +1300
changeset 117116 59b5ec3ba8d3c6b1324bef1ddbda2c661257dca9
parent 111926 5ce71981e005a52d4cb0b831ad3db9284f2fb356
child 148029 0c91d9aa9476a9c2c6eb01e6142267d7987977e2
permissions -rw-r--r--
Bug 663776. Part 2: Move TransformRectToRect from nsCSSRendering to gfxUtils. r=mattwoodrow

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