michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: #include "nsISupports.idl" michael@0: #include "nsICache.idl" michael@0: michael@0: michael@0: interface nsICacheEntryDescriptor; michael@0: michael@0: [scriptable, uuid(8eadf2ed-8cac-4961-8025-6da6d5827e74)] michael@0: interface nsICacheListener : nsISupports michael@0: { michael@0: /** michael@0: * Called when the requested access (or appropriate subset) is michael@0: * acquired. The status parameter equals NS_OK on success. michael@0: * See nsICacheService.idl for accessGranted values. michael@0: */ michael@0: void onCacheEntryAvailable(in nsICacheEntryDescriptor descriptor, michael@0: in nsCacheAccessMode accessGranted, michael@0: in nsresult status); michael@0: michael@0: /** michael@0: * Called when nsCacheSession::DoomEntry() is completed. The status michael@0: * parameter is NS_OK when the entry was doomed, or NS_ERROR_NOT_AVAILABLE michael@0: * when there is no such entry. michael@0: */ michael@0: void onCacheEntryDoomed(in nsresult status); michael@0: };