Bug 1890277: part 1) Add CSP parser tests for `require-trusted-types-for`. r=tschuster
[gecko.git] / uriloader / exthandler / uikit / nsMIMEInfoUIKit.h
blob109eb16e3f6fecb3362dc7a4a3ab1666747c32c3
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 {
13 public:
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;
21 protected:
22 virtual nsresult LoadUriInternal(nsIURI* aURI) override;
23 #ifdef DEBUG
24 virtual nsresult LaunchDefaultWithFile(nsIFile* aFile) override {
25 MOZ_ASSERT_UNREACHABLE("do not call this method, use LaunchWithFile");
26 return NS_ERROR_UNEXPECTED;
28 #endif
31 #endif