Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
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
16 {
17 /**
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.
21 */
22 void onCacheEntryAvailable(in nsICacheEntryDescriptor descriptor,
23 in nsCacheAccessMode accessGranted,
24 in nsresult status);
26 /**
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.
30 */
31 void onCacheEntryDoomed(in nsresult status);
32 };