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_WebRequestErrorWrappers_h
#define mozilla_java_WebRequestErrorWrappers_h
#ifndef MOZ_PREPROCESSOR
#include "mozilla/jni/Refs.h"
#endif
namespace mozilla {
namespace java {
class WebRequestError : public mozilla::jni::ObjectBase<WebRequestError>
{
public:
static constexpr char name[] =
"org/mozilla/geckoview/WebRequestError";
explicit WebRequestError(const Context& ctx) : ObjectBase<WebRequestError>(ctx) {}
struct ConvertGeckoError_t {
typedef WebRequestError Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<
int64_t,
int32_t> Args;
static constexpr char name[] = "convertGeckoError";
static constexpr char signature[] =
"(JI)I";
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::CURRENT;
};
// static int convertGeckoError(long, int)
static auto ConvertGeckoError(int64_t, int32_t) -> int32_t;
struct FromGeckoError_t {
typedef WebRequestError Owner;
typedef WebRequestError::LocalRef ReturnType;
typedef WebRequestError::Param SetterType;
typedef mozilla::jni::Args<
int64_t,
int32_t,
int32_t,
mozilla::jni::ByteArray::Param> Args;
static constexpr char name[] = "fromGeckoError";
static constexpr char signature[] =
"(JII[B)Lorg/mozilla/geckoview/WebRequestError;";
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::CURRENT;
};
// static WebRequestError fromGeckoError(long, int, int, byte[])
static auto FromGeckoError(int64_t, int32_t, int32_t, mozilla::jni::ByteArray::Param) -> WebRequestError::LocalRef;
struct GetErrorCategory_t {
typedef WebRequestError Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<
int64_t,
int32_t> Args;
static constexpr char name[] = "getErrorCategory";
static constexpr char signature[] =
"(JI)I";
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::CURRENT;
};
// static int getErrorCategory(long, int)
static auto GetErrorCategory(int64_t, int32_t) -> int32_t;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
} /* java */
} /* mozilla */
#endif // mozilla_java_WebRequestErrorWrappers_h