Struct xpcom::interfaces::nsIProtocolProxyChannelFilter [] [src]

#[repr(C)]
pub struct nsIProtocolProxyChannelFilter { /* fields omitted */ }

interface nsIProtocolProxyChannelFilter : nsISupports

/**
 * This interface is used to apply filters to the proxies selected for a given
 * channel.  Use nsIProtocolProxyService::registerChannelFilter to hook up instances of
 * this interface. See also nsIProtocolProxyFilter.
 */

Methods

impl nsIProtocolProxyChannelFilter
[src]

[src]

Cast this nsIProtocolProxyChannelFilter to one of its base interfaces.

impl nsIProtocolProxyChannelFilter
[src]

[src]

/**
   * This method is called to apply proxy filter rules for the given channel
   * and proxy object (or list of proxy objects).
   *
   * @param aProxyService
   *        A reference to the Protocol Proxy Service.  This is passed so that
   *        implementations may easily access methods such as newProxyInfo.
   * @param aChannel
   *        The channel for which these proxy settings apply.
   * @param aProxy
   *        The proxy (or list of proxies) that would be used by default for
   *        the given channel. This may be null.
   *
   * @return The proxy (or list of proxies) that should be used in place of
   *         aProxy. This can be just be aProxy if the filter chooses not to
   *         modify the proxy. It can also be null to indicate that a direct
   *         connection should be used.  Use aProxyService.newProxyInfo to
   *         construct nsIProxyInfo objects.
   */

nsIProxyInfo applyFilter (in nsIProtocolProxyService aProxyService, in nsIChannel aChannel, in nsIProxyInfo aProxy);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIProtocolProxyChannelFilter
[src]

IID: nsIID = nsID(609945728, 33477, 20078, [190, 109, 188, 88, 106, 165, 90, 144])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIProtocolProxyChannelFilter
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIProtocolProxyChannelFilter
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.