uriloader/exthandler/android/nsExternalURLHandlerService.cpp
author Carsten "Tomcat" Book <cbook@mozilla.com>
Fri, 06 Nov 2015 13:59:27 +0100
changeset 293148 5dbceb9638a01828296241661ff3c644d894f118
parent 192515 6c1c7e45c90289a0875b74f82f39e7ecf6a65af3
permissions -rw-r--r--
Merge mozilla-central to fx-team

/* -*- Mode: c++; c-basic-offset: 2; tab-width: 20; indent-tabs-mode: nil; -*-
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsExternalURLHandlerService.h"
#include "nsMIMEInfoAndroid.h"

NS_IMPL_ISUPPORTS(nsExternalURLHandlerService, nsIExternalURLHandlerService)

nsExternalURLHandlerService::nsExternalURLHandlerService()
{
}

nsExternalURLHandlerService::~nsExternalURLHandlerService()
{
}

NS_IMETHODIMP
nsExternalURLHandlerService::GetURLHandlerInfoFromOS(nsIURI *aURL,
                                                     bool *found,
                                                     nsIHandlerInfo **info)
{
  nsCString uriSpec;
  aURL->GetSpec(uriSpec);
  return nsMIMEInfoAndroid::GetMimeInfoForURL(uriSpec, found, info);
}