michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface imgIRequest; michael@0: michael@0: [uuid(dc126d90-0ee0-4683-b942-2fa66e443abc)] michael@0: interface imgIOnloadBlocker : nsISupports michael@0: { michael@0: /** michael@0: * blockOnload michael@0: * Called when it is appropriate to block onload for the given imgIRequest. michael@0: * michael@0: * @param aRequest michael@0: * The request that should block onload. michael@0: */ michael@0: void blockOnload(in imgIRequest aRequest); michael@0: michael@0: /** michael@0: * unblockOnload michael@0: * Called when it is appropriate to unblock onload for the given michael@0: * imgIRequest. michael@0: * michael@0: * @param aRequest michael@0: * The request that should unblock onload. michael@0: */ michael@0: void unblockOnload(in imgIRequest aRequest); michael@0: };