1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/uriloader/exthandler/nsIExternalURLHandlerService.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsIMIMEInfo.idl" 1.9 + 1.10 +/** 1.11 + * The external URL handler service is used for finding 1.12 + * platform-specific applications for handling particular URLs. 1.13 + */ 1.14 + 1.15 +[scriptable, uuid(56c5c7d3-6fd3-43f8-9429-4397e111453a)] 1.16 +interface nsIExternalURLHandlerService : nsISupports 1.17 +{ 1.18 + /** 1.19 + * Given a URL, looks up the handler info from the OS. This should be 1.20 + * overridden by each OS's implementation. 1.21 + * 1.22 + * @param aURL The URL we are looking for. 1.23 + * @param aFound Was an OS default handler for this URL found? 1.24 + * @return An nsIHanderInfo for the protocol. 1.25 + */ 1.26 + nsIHandlerInfo getURLHandlerInfoFromOS(in nsIURI aURL, 1.27 + out boolean aFound); 1.28 + 1.29 +};