Copy as Markdown

Other Tools

// GENERATED CODE
// Generated by the Java program at /build/annotationProcessors at compile time
// from annotations on Java methods. To update, change the annotations on the
// corresponding Java methods and rerun the build. Manually updating this file
// will cause your build to fail.
#ifndef mozilla_java_GeckoWebExecutorWrappers_h
#define mozilla_java_GeckoWebExecutorWrappers_h
#ifndef MOZ_PREPROCESSOR
#include "mozilla/jni/Refs.h"
#endif
namespace mozilla {
namespace java {
class GeckoWebExecutor : public mozilla::jni::ObjectBase<GeckoWebExecutor>
{
public:
static constexpr char name[] =
"org/mozilla/geckoview/GeckoWebExecutor";
explicit GeckoWebExecutor(const Context& ctx) : ObjectBase<GeckoWebExecutor>(ctx) {}
struct CreateByteBuffer_t {
typedef GeckoWebExecutor Owner;
typedef mozilla::jni::ByteBuffer::LocalRef ReturnType;
typedef mozilla::jni::ByteBuffer::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "createByteBuffer";
static constexpr char signature[] =
"(I)Ljava/nio/ByteBuffer;";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::GECKO;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// static ByteBuffer createByteBuffer(int)
static auto CreateByteBuffer(int32_t, mozilla::jni::ByteBuffer::LocalRef*) -> nsresult;
// Suggested header signature for native method:
// static void Fetch(mozilla::java::WebRequest::Param, int32_t, mozilla::java::GeckoResult::Param);
struct Fetch_t {
typedef GeckoWebExecutor Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
int32_t,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "nativeFetch";
static constexpr char signature[] =
"(Lorg/mozilla/geckoview/WebRequest;ILorg/mozilla/geckoview/GeckoResult;)V";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::GECKO;
};
// Suggested header signature for native method:
// static void Resolve(mozilla::jni::String::Param, mozilla::java::GeckoResult::Param);
struct Resolve_t {
typedef GeckoWebExecutor Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "nativeResolve";
static constexpr char signature[] =
"(Ljava/lang/String;Lorg/mozilla/geckoview/GeckoResult;)V";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::GECKO;
};
static constexpr int32_t FETCH_FLAGS_ANONYMOUS = 1;
static constexpr int32_t FETCH_FLAGS_NO_REDIRECTS = 2;
static constexpr int32_t FETCH_FLAGS_PRIVATE = 8;
static constexpr int32_t FETCH_FLAGS_STREAM_FAILURE_TEST = 1024;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
template<class Impl> class Natives;
};
} /* java */
} /* mozilla */
#endif // mozilla_java_GeckoWebExecutorWrappers_h