michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ 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 "nsIProtocolProxyService.idl" michael@0: michael@0: /** michael@0: * An extension of nsIProtocolProxyService michael@0: */ michael@0: [scriptable, uuid(b2e5b2c0-e21e-4845-b336-be6d60a38951)] michael@0: interface nsIProtocolProxyService2 : nsIProtocolProxyService michael@0: { michael@0: /** michael@0: * Call this method to cause the PAC file (if any is configured) to be michael@0: * reloaded. The PAC file is loaded asynchronously. michael@0: */ michael@0: void reloadPAC(); michael@0: michael@0: /** michael@0: * This method is identical to asyncResolve() except it may execute the michael@0: * callback function immediately (i.e from the stack of asyncResolve2()) if michael@0: * it is immediately ready to run. The nsICancelable return value will be michael@0: * null in that case. michael@0: */ michael@0: nsICancelable asyncResolve2(in nsIChannel aChannel, in unsigned long aFlags, michael@0: in nsIProtocolProxyCallback aCallback); michael@0: };