Chromium Code Reviews| 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. |