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