1 /* -*- Mode: c++; c-basic-offset: 2; tab-width: 20; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef WebExecutorSupport_h__
7 #define WebExecutorSupport_h__
9 #include "mozilla/java/GeckoWebExecutorNatives.h"
10 #include "mozilla/java/GeckoResultWrappers.h"
11 #include "mozilla/java/WebRequestWrappers.h"
16 class WebExecutorSupport final
17 : public java::GeckoWebExecutor::Natives
<WebExecutorSupport
> {
19 static void Fetch(jni::Object::Param request
, int32_t flags
,
20 jni::Object::Param result
);
21 static void Resolve(jni::String::Param aUri
, jni::Object::Param result
);
24 static nsresult
CreateStreamLoader(java::WebRequest::Param aRequest
,
26 java::GeckoResult::Param aResult
);
30 } // namespace mozilla
32 #endif // WebExecutorSupport_h__