OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "android_webview/native/aw_contents_background_thread_client.h" | |
6 | |
7 #include "jni/AwContentsBackgroundThreadClient_jni.h" | |
8 | |
9 using base::android::JavaRef; | |
10 | |
11 namespace android_webview { | |
12 | |
13 // static | |
14 base::android::ScopedJavaLocalRef<jobject> | |
15 AwContentsBackgroundThreadClient::shouldInterceptRequest( | |
16 JNIEnv* env, | |
17 const JavaRef<jobject>& obj, | |
18 const JavaRef<jstring>& url, | |
19 jboolean isMainFrame, | |
20 jboolean hasUserGesture, | |
21 const JavaRef<jstring>& method, | |
22 const JavaRef<jobjectArray>& requestHeaderNames, | |
23 const JavaRef<jobjectArray>& requestHeaderValues) { | |
24 return Java_AwContentsBackgroundThreadClient_shouldInterceptRequestFromNative( | |
25 env, obj, url, isMainFrame, hasUserGesture, method, requestHeaderNames, | |
26 requestHeaderValues); | |
27 } | |
28 | |
29 } // namespace android_webview | |
OLD | NEW |