| 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/browser/aw_contents_background_thread_client.h" |
| 6 | 6 |
| 7 #include "jni/AwContentsBackgroundThreadClient_jni.h" | 7 #include "jni/AwContentsBackgroundThreadClient_jni.h" |
| 8 | 8 |
| 9 using base::android::JavaRef; | 9 using base::android::JavaRef; |
| 10 | 10 |
| 11 namespace android_webview { | 11 namespace android_webview { |
| 12 | 12 |
| 13 // static | 13 // static |
| 14 base::android::ScopedJavaLocalRef<jobject> | 14 base::android::ScopedJavaLocalRef<jobject> |
| 15 AwContentsBackgroundThreadClient::shouldInterceptRequest( | 15 AwContentsBackgroundThreadClient::shouldInterceptRequest( |
| 16 JNIEnv* env, | 16 JNIEnv* env, |
| 17 const JavaRef<jobject>& obj, | 17 const JavaRef<jobject>& obj, |
| 18 const JavaRef<jstring>& url, | 18 const JavaRef<jstring>& url, |
| 19 jboolean isMainFrame, | 19 jboolean isMainFrame, |
| 20 jboolean hasUserGesture, | 20 jboolean hasUserGesture, |
| 21 const JavaRef<jstring>& method, | 21 const JavaRef<jstring>& method, |
| 22 const JavaRef<jobjectArray>& requestHeaderNames, | 22 const JavaRef<jobjectArray>& requestHeaderNames, |
| 23 const JavaRef<jobjectArray>& requestHeaderValues) { | 23 const JavaRef<jobjectArray>& requestHeaderValues) { |
| 24 return Java_AwContentsBackgroundThreadClient_shouldInterceptRequestFromNative( | 24 return Java_AwContentsBackgroundThreadClient_shouldInterceptRequestFromNative( |
| 25 env, obj, url, isMainFrame, hasUserGesture, method, requestHeaderNames, | 25 env, obj, url, isMainFrame, hasUserGesture, method, requestHeaderNames, |
| 26 requestHeaderValues); | 26 requestHeaderValues); |
| 27 } | 27 } |
| 28 | 28 |
| 29 } // namespace android_webview | 29 } // namespace android_webview |
| OLD | NEW |