Bug 1540028 [wpt PR 16099] - Catch more exceptions in Document-createElement-namespac...
[gecko.git] / widget / android / WebExecutorSupport.h
bloba56f71217a98ce66941c582eab66189b0dd914bf
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 "GeneratedJNINatives.h"
11 namespace mozilla {
12 namespace widget {
14 class WebExecutorSupport final
15 : public java::GeckoWebExecutor::Natives<WebExecutorSupport> {
16 public:
17 static void Fetch(jni::Object::Param request, int32_t flags,
18 jni::Object::Param result);
19 static void Resolve(jni::String::Param aUri, jni::Object::Param result);
21 protected:
22 static nsresult CreateStreamLoader(java::WebRequest::Param aRequest,
23 int32_t aFlags,
24 java::GeckoResult::Param aResult);
27 } // namespace widget
28 } // namespace mozilla
30 #endif // WebExecutorSupport_h__