forked from mirrors/gecko-dev
		
	 fd84c776c7
			
		
	
	
		fd84c776c7
		
	
	
	
	
		
			
			MozReview-Commit-ID: EMjJ3yWt9Wt --HG-- extra : rebase_source : 2b8327e5a7cf0bfd190d696ad5fe475f13faa3cc
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			733 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			733 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* 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"];
 | |
| 
 | |
| Components.utils.import('resource://gre/modules/LoadContextInfo.jsm');
 | |
| 
 | |
| const Cc = Components.classes;
 | |
| const Ci = Components.interfaces;
 | |
| 
 | |
| this.OfflineAppCacheHelper = {
 | |
|   clear: function() {
 | |
|     var cacheService = Cc["@mozilla.org/netwerk/cache-storage-service;1"].getService(Ci.nsICacheStorageService);
 | |
|     var appCacheStorage = cacheService.appCacheStorage(LoadContextInfo.default, null);
 | |
|     try {
 | |
|       appCacheStorage.asyncEvictStorage(null);
 | |
|     } catch (er) {}
 | |
|   }
 | |
| };
 |