summaryrefslogtreecommitdiffstats
path: root/android_webview/native/aw_contents_background_thread_client.h
blob: 7efd20d52bf4541bd96648524a954b51d100fc7a (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
// 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.

#ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_BACKGROUND_THREAD_CLIENT_H_
#define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_BACKGROUND_THREAD_CLIENT_H_

#include "base/android/scoped_java_ref.h"

namespace android_webview {

class AwContentsBackgroundThreadClient {
 public:
  static base::android::ScopedJavaLocalRef<jobject> shouldInterceptRequest(
      JNIEnv* env,
      jobject obj,
      jstring url,
      jboolean isMainFrame,
      jboolean hasUserGesture,
      jstring method,
      jobjectArray requestHeaderNames,
      jobjectArray requestHeaderValues);
};

// JNI registration method.
bool RegisterAwContentsBackgroundThreadClient(JNIEnv* env);

}

#endif  // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_BACKGROUND_THREAD_CLIENT_H_