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

Unified Diff: android_webview/browser/aw_contents_io_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: Comments addressed 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/browser/aw_contents_io_thread_client.h
diff --git a/android_webview/browser/aw_contents_io_thread_client.h b/android_webview/browser/aw_contents_io_thread_client.h
index e24097616d771ba25fc444f5e79941eebffd7811..18e0a745acba7bc2e249701bde77590f4268bc41 100644
--- a/android_webview/browser/aw_contents_io_thread_client.h
+++ b/android_webview/browser/aw_contents_io_thread_client.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
class GURL;
@@ -69,8 +70,11 @@ class AwContentsIoThreadClient {
int child_render_frame_id);
// This method is called on the IO thread only.
- virtual scoped_ptr<AwWebResourceResponse> ShouldInterceptRequest(
- const net::URLRequest* request) = 0;
+ typedef base::Callback<void(scoped_ptr<AwWebResourceResponse>)>
+ ShouldInterceptRequestResultCallback;
+ virtual void ShouldInterceptRequestAsync(
+ const net::URLRequest* request,
+ const ShouldInterceptRequestResultCallback callback) = 0;
// Retrieve the AllowContentAccess setting value of this AwContents.
// This method is called on the IO thread only.

Powered by Google App Engine
This is Rietveld 408576698