nsIIOService2

nsIIOService2 extends nsIIOService

Methods

newChannelFromURIWithProxyFlags2(aURI, aProxyURI, aProxyFlags, aLoadingNode, aLoadingPrincipal, aTriggeringPrincipal, aSecurityFlags, aContentPolicyType)

Creates a channel for a given URI.

Parameters

aURI nsIURI from which to make a channel
aProxyURI nsIURI to use for proxy resolution. Can be null in which case aURI is used
aProxyFlags flags from nsIProtocolProxyService to use when resolving proxies for this new channel

Returns

reference to the new nsIChannel object

newChannelFromURIWithProxyFlags(aURI, aProxyURI, aProxyFlags)

Creates a channel for a given URI.

Parameters

aURI nsIURI from which to make a channel
aProxyURI nsIURI to use for proxy resolution. Can be null in which case aURI is used
aProxyFlags flags from nsIProtocolProxyService to use when resolving proxies for this new channel

Returns

reference to the new nsIChannel object

Attributes

manageOfflineStatus

While this is set, IOService will monitor an nsINetworkLinkService
(if available) and set its offline status to “true” whenever
isLinkUp is false.

Applications that want to control changes to the IOService’s offline
status should set this to false, watch for network:link-status-changed
broadcasts, and change nsIIOService::offline as they see fit. Note
that this means during application startup, IOService may be offline
if there is no link, until application code runs and can turn off
this management.