1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/base/public/nsIIOService2.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* vim:expandtab:shiftwidth=4:tabstop=4: 1.6 + */ 1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 + 1.11 +#include "nsIIOService.idl" 1.12 + 1.13 +/** 1.14 + * nsIIOService2 extends nsIIOService 1.15 + */ 1.16 +[scriptable, uuid(9a7dc724-0b5c-4b78-9722-1037074c02de)] 1.17 +interface nsIIOService2 : nsIIOService 1.18 +{ 1.19 + /** 1.20 + * While this is set, IOService will monitor an nsINetworkLinkService 1.21 + * (if available) and set its offline status to "true" whenever 1.22 + * isLinkUp is false. 1.23 + * 1.24 + * Applications that want to control changes to the IOService's offline 1.25 + * status should set this to false, watch for network:link-status-changed 1.26 + * broadcasts, and change nsIIOService::offline as they see fit. Note 1.27 + * that this means during application startup, IOService may be offline 1.28 + * if there is no link, until application code runs and can turn off 1.29 + * this management. 1.30 + */ 1.31 + attribute boolean manageOfflineStatus; 1.32 + 1.33 + /** 1.34 + * Creates a channel for a given URI. 1.35 + * 1.36 + * @param aURI nsIURI from which to make a channel 1.37 + * @param aProxyURI nsIURI to use for proxy resolution. Can be null in which 1.38 + * case aURI is used 1.39 + * @param aProxyFlags flags from nsIProtocolProxyService to use 1.40 + * when resolving proxies for this new channel 1.41 + * @return reference to the new nsIChannel object 1.42 + */ 1.43 + nsIChannel newChannelFromURIWithProxyFlags(in nsIURI aURI, 1.44 + in nsIURI aProxyURI, 1.45 + in unsigned long aProxyFlags); 1.46 +};