uriloader/exthandler/android/nsExternalURLHandlerService.cpp
author Nicholas Cameron <ncameron@mozilla.com>
Mon, 28 May 2012 21:10:08 -0400
changeset 99193 9cc3b4fc60c545be2f7060cbcc192eff26727cbd
parent 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 112525 80e4ab0d24bc64ceaa7693ab5def36faffde7a40
permissions -rw-r--r--
Bug 758561 - Don't build a mask for an empty layer. r=roc

/* -*- 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_ISUPPORTS1(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);
}