2001-09-13 06:21:05 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-09-13 06:21:05 +04:00
|
|
|
|
|
|
|
#include "nsIProtocolHandler.idl"
|
|
|
|
|
|
|
|
interface nsIChannel;
|
|
|
|
interface nsIURI;
|
|
|
|
interface nsIProxyInfo;
|
2014-10-23 04:16:57 +04:00
|
|
|
interface nsILoadInfo;
|
2001-09-13 06:21:05 +04:00
|
|
|
|
2019-04-23 19:05:29 +03:00
|
|
|
[scriptable, builtinclass, uuid(3756047a-fa2b-4b45-9948-3b5f8fc375e7)]
|
2001-09-13 06:21:05 +04:00
|
|
|
interface nsIProxiedProtocolHandler : nsIProtocolHandler
|
|
|
|
{
|
2014-10-23 04:16:57 +04:00
|
|
|
/** Create a new channel with the given proxyInfo
|
|
|
|
*
|
|
|
|
* @param uri the channel uri
|
|
|
|
* @param proxyInfo any proxy information that has already been determined,
|
|
|
|
* or null if channel should later determine the proxy on its own using
|
|
|
|
* proxyResolveFlags/proxyURI
|
|
|
|
* @param proxyResolveFlags used if the proxy is later determined
|
|
|
|
* from nsIProtocolProxyService::asyncResolve
|
|
|
|
* @param proxyURI used if the proxy is later determined from
|
|
|
|
* nsIProtocolProxyService::asyncResolve with this as the proxyURI name.
|
|
|
|
* Generally this is the same as uri (or null which has the same
|
|
|
|
* effect), except in the case of websockets which wants to bootstrap
|
|
|
|
* to an http:// channel but make its proxy determination based on
|
|
|
|
* a ws:// uri.
|
2014-12-12 20:07:36 +03:00
|
|
|
* @param aLoadInfo used to evaluate who initated the resource request.
|
2014-10-23 04:16:57 +04:00
|
|
|
*/
|
2012-09-15 00:27:46 +04:00
|
|
|
nsIChannel newProxiedChannel(in nsIURI uri, in nsIProxyInfo proxyInfo,
|
|
|
|
in unsigned long proxyResolveFlags,
|
2019-02-19 17:42:42 +03:00
|
|
|
in nsIURI proxyURI,
|
|
|
|
in nsILoadInfo aLoadInfo);
|
2001-09-13 06:21:05 +04:00
|
|
|
};
|