netwerk/base/public/nsIProxiedProtocolHandler.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "nsIProtocolHandler.idl"
     8 interface nsIChannel;
     9 interface nsIURI;
    10 interface nsIProxyInfo;
    12 [scriptable, uuid(2b63fe69-b0fc-48f2-a2df-adb795a4ce5c)]
    13 interface nsIProxiedProtocolHandler : nsIProtocolHandler
    14 {
    15     /** Create a new channel with the given proxyInfo
    16      *
    17      * @param uri the channel uri
    18      * @param proxyInfo any proxy information that has already been determined,
    19      *        or null if channel should later determine the proxy on its own using
    20      *        proxyResolveFlags/proxyURI
    21      * @param proxyResolveFlags used if the proxy is later determined
    22      *        from nsIProtocolProxyService::asyncResolve
    23      * @param proxyURI used if the proxy is later determined from
    24      *        nsIProtocolProxyService::asyncResolve with this as the proxyURI name.
    25      *        Generally this is the same as uri (or null which has the same
    26      *        effect), except in the case of websockets which wants to bootstrap
    27      *        to an http:// channel but make its proxy determination based on
    28      *        a ws:// uri.
    29      */
    30     nsIChannel newProxiedChannel(in nsIURI uri, in nsIProxyInfo proxyInfo,
    31                                  in unsigned long proxyResolveFlags,
    32                                  in nsIURI proxyURI);
    33 };

mercurial