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

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: Final version? 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..061bd723992f940e0db315dc23ef91ac2d836d55 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,10 @@ 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;
+ virtual void ShouldInterceptRequestAsync(
+ const net::URLRequest* request,
+ const base::Callback<void(scoped_ptr<AwWebResourceResponse>)>
boliu 2015/09/28 23:26:28 nit: typedef maybe?
mnaganov (inactive) 2015/09/29 00:14:06 Done.
+ 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