2001-02-23 03:11:10 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04: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/. */
|
2001-02-23 03:11:10 +03:00
|
|
|
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
2001-02-24 02:20:15 +03:00
|
|
|
#include "nsICache.idl"
|
|
|
|
|
2001-02-23 03:11:10 +03:00
|
|
|
|
|
|
|
interface nsICacheEntryDescriptor;
|
|
|
|
|
2012-03-23 02:54:20 +04:00
|
|
|
[scriptable, uuid(8eadf2ed-8cac-4961-8025-6da6d5827e74)]
|
2001-02-23 03:11:10 +03:00
|
|
|
interface nsICacheListener : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Called when the requested access (or appropriate subset) is
|
|
|
|
* acquired. The status parameter equals NS_OK on success.
|
|
|
|
* See nsICacheService.idl for accessGranted values.
|
|
|
|
*/
|
2001-03-07 01:04:05 +03:00
|
|
|
void onCacheEntryAvailable(in nsICacheEntryDescriptor descriptor,
|
2001-02-24 02:20:15 +03:00
|
|
|
in nsCacheAccessMode accessGranted,
|
2001-02-23 03:11:10 +03:00
|
|
|
in nsresult status);
|
2012-03-23 02:54:20 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when nsCacheSession::DoomEntry() is completed. The status
|
|
|
|
* parameter is NS_OK when the entry was doomed, or NS_ERROR_NOT_AVAILABLE
|
|
|
|
* when there is no such entry.
|
|
|
|
*/
|
|
|
|
void onCacheEntryDoomed(in nsresult status);
|
2001-02-23 03:11:10 +03:00
|
|
|
};
|