netwerk/cache/nsICacheListener.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 };

mercurial