1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/cache/nsICacheListener.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 + 1.11 +#include "nsISupports.idl" 1.12 +#include "nsICache.idl" 1.13 + 1.14 + 1.15 +interface nsICacheEntryDescriptor; 1.16 + 1.17 +[scriptable, uuid(8eadf2ed-8cac-4961-8025-6da6d5827e74)] 1.18 +interface nsICacheListener : nsISupports 1.19 +{ 1.20 + /** 1.21 + * Called when the requested access (or appropriate subset) is 1.22 + * acquired. The status parameter equals NS_OK on success. 1.23 + * See nsICacheService.idl for accessGranted values. 1.24 + */ 1.25 + void onCacheEntryAvailable(in nsICacheEntryDescriptor descriptor, 1.26 + in nsCacheAccessMode accessGranted, 1.27 + in nsresult status); 1.28 + 1.29 + /** 1.30 + * Called when nsCacheSession::DoomEntry() is completed. The status 1.31 + * parameter is NS_OK when the entry was doomed, or NS_ERROR_NOT_AVAILABLE 1.32 + * when there is no such entry. 1.33 + */ 1.34 + void onCacheEntryDoomed(in nsresult status); 1.35 +};