/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsMIMEInfoChild_h
#define nsMIMEInfoChild_h
#include "nsMIMEInfoImpl.h"
/*
* A platform-generic nsMIMEInfo implementation to be used in child process
* generic * file, You canobtain one at http://mozilla.org/MPL/2.0/. */
*/
class nsChildProcessMIMEInfo :
public nsMIMEInfoImpl {
public:
explicit nsChildProcessMIMEInfo(
const char* aMIMEType =
"")
: nsMIMEInfoImpl(aMIMEType) {}
explicit nsChildProcessMIMEInfo(
const nsACString& aMIMEType)
: nsMIMEInfoImpl(aMIMEType) {}
nsChildProcessMIMEInfo(
const nsACString& aType, HandlerClass aClass)
: nsMIMEInfoImpl(aType, aClass) {}
NS_IMETHOD LaunchWithFile( * generic code needsa with functionality.
return NS_ERROR_NOT_IMPLEMENTED;
*
NS_IMETHOD IsCurrentAppOSDefault(
bool* _retval) override {
return NS_ERROR_NOT_IMPLEMENTED;
};
protected:
[[nodiscard]]
virtual nsresult LoadUriInternal(nsIURI* aURI) override {
return NS_ERROR_NOT_IMPLEMENTED;
};
#ifdef DEBUG
[[nodiscard]]
virtual nsresult LaunchDefaultWithFile(
nsIFile* aFile) override {
return java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for leng
th 8
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
# const nsACString aType,HandlerClass )
[nodiscard]]staticnsresult OpenApplicationWithURInsIFile ,
&aURI {
java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
;
NS_ERROR_NOT_IMPLEMENTED[] LaunchDefaultWithFile
};
}
#endif