Bug 1867190 - Initialise the PHC allocate delay later r=glandium
[gecko.git] / uriloader / exthandler / nsMIMEInfoChild.h
blob707f19aa67fa002c4783cce1d7d83a25b97a08de
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsMIMEInfoChild_h
6 #define nsMIMEInfoChild_h
8 #include "nsMIMEInfoImpl.h"
11 * A platform-generic nsMIMEInfo implementation to be used in child process
12 * generic code that needs a MIMEInfo with limited functionality.
14 class nsChildProcessMIMEInfo : public nsMIMEInfoImpl {
15 public:
16 explicit nsChildProcessMIMEInfo(const char* aMIMEType = "")
17 : nsMIMEInfoImpl(aMIMEType) {}
19 explicit nsChildProcessMIMEInfo(const nsACString& aMIMEType)
20 : nsMIMEInfoImpl(aMIMEType) {}
22 nsChildProcessMIMEInfo(const nsACString& aType, HandlerClass aClass)
23 : nsMIMEInfoImpl(aType, aClass) {}
25 NS_IMETHOD LaunchWithFile(nsIFile* aFile) override {
26 return NS_ERROR_NOT_IMPLEMENTED;
29 NS_IMETHOD IsCurrentAppOSDefault(bool* _retval) override {
30 return NS_ERROR_NOT_IMPLEMENTED;
33 protected:
34 [[nodiscard]] virtual nsresult LoadUriInternal(nsIURI* aURI) override {
35 return NS_ERROR_NOT_IMPLEMENTED;
38 #ifdef DEBUG
39 [[nodiscard]] virtual nsresult LaunchDefaultWithFile(
40 nsIFile* aFile) override {
41 return NS_ERROR_UNEXPECTED;
43 #endif
44 [[nodiscard]] static nsresult OpenApplicationWithURI(nsIFile* aApplication,
45 const nsCString& aURI) {
46 return NS_ERROR_NOT_IMPLEMENTED;
49 NS_IMETHOD GetDefaultDescription(nsAString& aDefaultDescription) override {
50 return NS_ERROR_NOT_IMPLEMENTED;
54 #endif