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