Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: android_webview/native/aw_contents_background_thread_client.cc

Issue 1350553005: [Android WebView] Call shouldInterceptRequest on a background thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-uploading with standard diff settings to work around Windows patch issues Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "android_webview/native/aw_contents_background_thread_client.h"
6
7 #include "jni/AwContentsBackgroundThreadClient_jni.h"
8
9 namespace android_webview {
10
11 // static
12 base::android::ScopedJavaLocalRef<jobject>
13 AwContentsBackgroundThreadClient::shouldInterceptRequest(
14 JNIEnv* env,
15 jobject obj,
16 jstring url,
17 jboolean isMainFrame,
18 jboolean hasUserGesture,
19 jstring method,
20 jobjectArray requestHeaderNames,
21 jobjectArray requestHeaderValues) {
22 return Java_AwContentsBackgroundThreadClient_shouldInterceptRequestFromNative(
23 env, obj, url, isMainFrame, hasUserGesture, method, requestHeaderNames,
24 requestHeaderValues);
25 }
26
27 bool RegisterAwContentsBackgroundThreadClient(JNIEnv* env) {
28 return RegisterNativesImpl(env);
29 }
30
31 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698