1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/base/public/nsIProxiedProtocolHandler.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsIProtocolHandler.idl" 1.10 + 1.11 +interface nsIChannel; 1.12 +interface nsIURI; 1.13 +interface nsIProxyInfo; 1.14 + 1.15 +[scriptable, uuid(2b63fe69-b0fc-48f2-a2df-adb795a4ce5c)] 1.16 +interface nsIProxiedProtocolHandler : nsIProtocolHandler 1.17 +{ 1.18 + /** Create a new channel with the given proxyInfo 1.19 + * 1.20 + * @param uri the channel uri 1.21 + * @param proxyInfo any proxy information that has already been determined, 1.22 + * or null if channel should later determine the proxy on its own using 1.23 + * proxyResolveFlags/proxyURI 1.24 + * @param proxyResolveFlags used if the proxy is later determined 1.25 + * from nsIProtocolProxyService::asyncResolve 1.26 + * @param proxyURI used if the proxy is later determined from 1.27 + * nsIProtocolProxyService::asyncResolve with this as the proxyURI name. 1.28 + * Generally this is the same as uri (or null which has the same 1.29 + * effect), except in the case of websockets which wants to bootstrap 1.30 + * to an http:// channel but make its proxy determination based on 1.31 + * a ws:// uri. 1.32 + */ 1.33 + nsIChannel newProxiedChannel(in nsIURI uri, in nsIProxyInfo proxyInfo, 1.34 + in unsigned long proxyResolveFlags, 1.35 + in nsIURI proxyURI); 1.36 +}; 1.37 +