2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2011-12-16 14:36:09 -08:00
|
|
|
|
2012-10-31 09:13:28 -07:00
|
|
|
this.EXPORTED_SYMBOLS = ["OfflineAppCacheHelper"];
|
2011-12-16 14:36:09 -08:00
|
|
|
|
|
|
|
const Cc = Components.classes;
|
|
|
|
const Ci = Components.interfaces;
|
|
|
|
|
2012-10-31 09:13:28 -07:00
|
|
|
this.OfflineAppCacheHelper = {
|
2011-12-16 14:36:09 -08:00
|
|
|
clear: function() {
|
|
|
|
var cacheService = Cc["@mozilla.org/network/cache-service;1"].
|
|
|
|
getService(Ci.nsICacheService);
|
|
|
|
try {
|
|
|
|
cacheService.evictEntries(Ci.nsICache.STORE_OFFLINE);
|
|
|
|
} catch(er) {}
|
|
|
|
}
|
|
|
|
};
|