michael@0: /* -*- Mode: c++; c-basic-offset: 2; tab-width: 20; indent-tabs-mode: nil; -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsExternalURLHandlerService.h" michael@0: #include "nsMIMEInfoAndroid.h" michael@0: michael@0: NS_IMPL_ISUPPORTS(nsExternalURLHandlerService, nsIExternalURLHandlerService) michael@0: michael@0: nsExternalURLHandlerService::nsExternalURLHandlerService() michael@0: { michael@0: } michael@0: michael@0: nsExternalURLHandlerService::~nsExternalURLHandlerService() michael@0: { michael@0: } michael@0: michael@0: NS_IMETHODIMP michael@0: nsExternalURLHandlerService::GetURLHandlerInfoFromOS(nsIURI *aURL, michael@0: bool *found, michael@0: nsIHandlerInfo **info) michael@0: { michael@0: nsCString uriSpec; michael@0: aURL->GetSpec(uriSpec); michael@0: return nsMIMEInfoAndroid::GetMimeInfoForURL(uriSpec, found, info); michael@0: }