1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim:expandtab:shiftwidth=2:tabstop=2:cin:
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsMIMEInfoUIKit_h_
8 #define nsMIMEInfoUIKit_h_
10 #include "nsMIMEInfoImpl.h"
12 class nsMIMEInfoUIKit final
: public nsMIMEInfoImpl
{
14 explicit nsMIMEInfoUIKit(const nsACString
& aMIMEType
)
15 : nsMIMEInfoImpl(aMIMEType
) {}
16 nsMIMEInfoUIKit(const nsACString
& aType
, HandlerClass aClass
)
17 : nsMIMEInfoImpl(aType
, aClass
) {}
19 NS_IMETHOD
LaunchWithFile(nsIFile
* aFile
) override
;
22 virtual nsresult
LoadUriInternal(nsIURI
* aURI
) override
;
24 virtual nsresult
LaunchDefaultWithFile(nsIFile
* aFile
) override
{
25 MOZ_ASSERT_UNREACHABLE("do not call this method, use LaunchWithFile");
26 return NS_ERROR_UNEXPECTED
;