mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
59 lines
2.2 KiB
Plaintext
59 lines
2.2 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
*
|
|
* The contents of this file are subject to the Mozilla Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/MPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is nsICacheVisitor.idl, released February 23, 2001.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape Communications
|
|
* Corporation. Portions created by Netscape are
|
|
* Copyright (C) 2001 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
* Gordon Sheridan <gordon@netscape.com>
|
|
* Patrick Beard <beard@netscape.com>
|
|
* Darin Fisher <darin@netscape.com>
|
|
*/
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
/* XXX we should define device and entry info as well (stats, etc) */
|
|
|
|
[scriptable, uuid(f8c08c4b-d778-49d1-a59b-866fdc500d95)]
|
|
interface nsICacheVisitor : nsISupports
|
|
{
|
|
/**
|
|
* Called to provide information about a cache device.
|
|
*
|
|
* @param deviceID - specifies the device being visited.
|
|
* @param deviceInfo - specifies information about this device.
|
|
*
|
|
* @return true to start visiting all entries for this device.
|
|
* @return false to advance to the next device.
|
|
*/
|
|
boolean visitDevice(in string deviceID, in nsISupports deviceInfo);
|
|
|
|
/**
|
|
* Called to provide information about a cache entry.
|
|
*
|
|
* @param deviceID - specifies the device being visited.
|
|
# @param clientID - specifies the client who created this entry.
|
|
* @param entryInfo - specifies information about this entry.
|
|
*
|
|
* @return true to visit the next entry on the current device, or if the
|
|
* end of the device has been reached, advance to the next device.
|
|
* @return false to advance to the next device.
|
|
*/
|
|
boolean visitEntry(in string deviceID,
|
|
in string clientID,
|
|
in nsISupports entryInfo);
|
|
};
|