|
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
|
2 /* vim:expandtab:shiftwidth=4:tabstop=4: |
|
3 */ |
|
4 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
7 |
|
8 #include "nsIIOService.idl" |
|
9 |
|
10 /** |
|
11 * nsIIOService2 extends nsIIOService |
|
12 */ |
|
13 [scriptable, uuid(9a7dc724-0b5c-4b78-9722-1037074c02de)] |
|
14 interface nsIIOService2 : nsIIOService |
|
15 { |
|
16 /** |
|
17 * While this is set, IOService will monitor an nsINetworkLinkService |
|
18 * (if available) and set its offline status to "true" whenever |
|
19 * isLinkUp is false. |
|
20 * |
|
21 * Applications that want to control changes to the IOService's offline |
|
22 * status should set this to false, watch for network:link-status-changed |
|
23 * broadcasts, and change nsIIOService::offline as they see fit. Note |
|
24 * that this means during application startup, IOService may be offline |
|
25 * if there is no link, until application code runs and can turn off |
|
26 * this management. |
|
27 */ |
|
28 attribute boolean manageOfflineStatus; |
|
29 |
|
30 /** |
|
31 * Creates a channel for a given URI. |
|
32 * |
|
33 * @param aURI nsIURI from which to make a channel |
|
34 * @param aProxyURI nsIURI to use for proxy resolution. Can be null in which |
|
35 * case aURI is used |
|
36 * @param aProxyFlags flags from nsIProtocolProxyService to use |
|
37 * when resolving proxies for this new channel |
|
38 * @return reference to the new nsIChannel object |
|
39 */ |
|
40 nsIChannel newChannelFromURIWithProxyFlags(in nsIURI aURI, |
|
41 in nsIURI aProxyURI, |
|
42 in unsigned long aProxyFlags); |
|
43 }; |