Bug 1890689 apply drift correction to input rate instead of output rate r=pehrsons
[gecko.git] / uriloader / exthandler / unix / nsMIMEInfoUnix.h
blob0d2ca67c0707957be3fe087f90c984863f8e7719
1 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 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/. */
7 #ifndef nsMIMEInfoUnix_h_
8 #define nsMIMEInfoUnix_h_
10 #include "nsMIMEInfoImpl.h"
12 class nsMIMEInfoUnix : public nsMIMEInfoImpl {
13 public:
14 explicit nsMIMEInfoUnix(const char* aMIMEType = "")
15 : nsMIMEInfoImpl(aMIMEType) {}
16 explicit nsMIMEInfoUnix(const nsACString& aMIMEType)
17 : nsMIMEInfoImpl(aMIMEType) {}
18 nsMIMEInfoUnix(const nsACString& aType, HandlerClass aClass)
19 : nsMIMEInfoImpl(aType, aClass) {}
20 static bool HandlerExists(const char* aProtocolScheme);
22 protected:
23 NS_IMETHOD GetDefaultExecutable(nsIFile** aExecutable) override;
24 NS_IMETHOD GetHasDefaultHandler(bool* _retval) override;
26 virtual nsresult LoadUriInternal(nsIURI* aURI) override;
28 virtual nsresult LaunchDefaultWithFile(nsIFile* aFile) override;
31 #endif // nsMIMEInfoUnix_h_