Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / widget / android / WebExecutorSupport.h
blob65a68fcc40b1806b14dcc4f3d7739f0fdbd2cfa3
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"
13 namespace mozilla {
14 namespace widget {
16 class WebExecutorSupport final
17 : public java::GeckoWebExecutor::Natives<WebExecutorSupport> {
18 public:
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);
23 protected:
24 static nsresult CreateStreamLoader(java::WebRequest::Param aRequest,
25 int32_t aFlags,
26 java::GeckoResult::Param aResult);
29 } // namespace widget
30 } // namespace mozilla
32 #endif // WebExecutorSupport_h__