| Index: android_webview/native/aw_contents_background_thread_client.cc
|
| diff --git a/android_webview/native/aw_contents_background_thread_client.cc b/android_webview/native/aw_contents_background_thread_client.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3993b6f2803cd210ad118bd9f5c9bf6692c613c3
|
| --- /dev/null
|
| +++ b/android_webview/native/aw_contents_background_thread_client.cc
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "android_webview/native/aw_contents_background_thread_client.h"
|
| +
|
| +#include "jni/AwContentsBackgroundThreadClient_jni.h"
|
| +
|
| +namespace android_webview {
|
| +
|
| +// static
|
| +base::android::ScopedJavaLocalRef<jobject>
|
| +AwContentsBackgroundThreadClient::shouldInterceptRequest(
|
| + JNIEnv* env,
|
| + jobject obj,
|
| + jstring url,
|
| + jboolean isMainFrame,
|
| + jboolean hasUserGesture,
|
| + jstring method,
|
| + jobjectArray requestHeaderNames,
|
| + jobjectArray requestHeaderValues) {
|
| + return Java_AwContentsBackgroundThreadClient_shouldInterceptRequestFromNative(
|
| + env, obj, url, isMainFrame, hasUserGesture, method, requestHeaderNames,
|
| + requestHeaderValues);
|
| +}
|
| +
|
| +bool RegisterAwContentsBackgroundThreadClient(JNIEnv* env) {
|
| + return RegisterNativesImpl(env);
|
| +}
|
| +
|
| +} // namespace android_webview
|
|
|