summaryrefslogtreecommitdiffstats
path: root/android_webview/native/aw_contents_background_thread_client.cc
blob: 3993b6f2803cd210ad118bd9f5c9bf6692c613c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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