1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
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/. */
7 #include
"nsISupports.idl"
10 interface nsIProxyInfo
;
11 interface nsICancelable
;
14 * This interface serves as a closure for nsIProtocolProxyService's
15 * asyncResolve method.
17 [scriptable
, uuid(fbb6eff6
-0cc2
-4d99
-8d6f
-0a12b462bdeb
)]
18 interface nsIProtocolProxyCallback
: nsISupports
21 * This method is called when proxy info is available or when an error
22 * in the proxy resolution occurs.
25 * The value returned from asyncResolve.
27 * The channel passed to asyncResolve.
29 * The resulting proxy info or null if there is no associated proxy
30 * info for aURI. As with the result of nsIProtocolProxyService's
31 * resolve method, a null result implies that a direct connection
34 * The status of the callback. This is a failure code if the request
35 * could not be satisfied, in which case the value of aStatus
36 * indicates the reason for the failure and aProxyInfo will be null.
38 void onProxyAvailable
(in nsICancelable aRequest
,
39 in nsIChannel aChannel
,
40 in nsIProxyInfo aProxyInfo
,