/src/mozilla-central/uriloader/exthandler/unix/nsMIMEInfoUnix.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
2 | | * |
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/. */ |
6 | | |
7 | | #ifndef nsMIMEInfoUnix_h_ |
8 | | #define nsMIMEInfoUnix_h_ |
9 | | |
10 | | #include "nsMIMEInfoImpl.h" |
11 | | |
12 | | class nsMIMEInfoUnix : public nsMIMEInfoImpl |
13 | | { |
14 | | public: |
15 | 0 | explicit nsMIMEInfoUnix(const char *aMIMEType = "") : nsMIMEInfoImpl(aMIMEType) {} |
16 | 0 | explicit nsMIMEInfoUnix(const nsACString& aMIMEType) : nsMIMEInfoImpl(aMIMEType) {} |
17 | | nsMIMEInfoUnix(const nsACString& aType, HandlerClass aClass) : |
18 | 0 | nsMIMEInfoImpl(aType, aClass) {} |
19 | | static bool HandlerExists(const char *aProtocolScheme); |
20 | | |
21 | | protected: |
22 | | NS_IMETHOD GetHasDefaultHandler(bool *_retval) override; |
23 | | |
24 | | virtual nsresult LoadUriInternal(nsIURI *aURI) override; |
25 | | |
26 | | virtual nsresult LaunchDefaultWithFile(nsIFile *aFile) override; |
27 | | }; |
28 | | |
29 | | #endif // nsMIMEInfoUnix_h_ |