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

Unified Diff: android_webview/native/aw_contents_background_thread_client.h

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, 3 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/native/aw_contents_background_thread_client.h
diff --git a/android_webview/native/aw_contents_background_thread_client.h b/android_webview/native/aw_contents_background_thread_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..7efd20d52bf4541bd96648524a954b51d100fc7a
--- /dev/null
+++ b/android_webview/native/aw_contents_background_thread_client.h
@@ -0,0 +1,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_

Powered by Google App Engine
This is Rietveld 408576698