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 ImageDecoderSupport_h__
6 #define ImageDecoderSupport_h__
8 #include "mozilla/java/ImageDecoderNatives.h"
10 class imgIContainerCallback
;
15 class ImageDecoderSupport final
16 : public java::ImageDecoder::Natives
<ImageDecoderSupport
> {
18 static void Decode(jni::String::Param aUri
, int32_t aDesiredLength
,
19 jni::Object::Param aResult
);
22 static nsresult
DecodeInternal(const nsAString
& aUri
,
23 imgIContainerCallback
* aCallback
,
24 imgINotificationObserver
* aObserver
);
28 } // namespace mozilla
30 #endif // ImageDecoderSupport_h__