|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 #include "nsIMIMEInfo.idl" |
|
6 |
|
7 /** |
|
8 * The external URL handler service is used for finding |
|
9 * platform-specific applications for handling particular URLs. |
|
10 */ |
|
11 |
|
12 [scriptable, uuid(56c5c7d3-6fd3-43f8-9429-4397e111453a)] |
|
13 interface nsIExternalURLHandlerService : nsISupports |
|
14 { |
|
15 /** |
|
16 * Given a URL, looks up the handler info from the OS. This should be |
|
17 * overridden by each OS's implementation. |
|
18 * |
|
19 * @param aURL The URL we are looking for. |
|
20 * @param aFound Was an OS default handler for this URL found? |
|
21 * @return An nsIHanderInfo for the protocol. |
|
22 */ |
|
23 nsIHandlerInfo getURLHandlerInfoFromOS(in nsIURI aURL, |
|
24 out boolean aFound); |
|
25 |
|
26 }; |