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

Unified Diff: android_webview/browser/net/android_stream_reader_url_request_job.h

Issue 59903011: [android_webview] Fix UAF in request interception code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/net/android_stream_reader_url_request_job.h
diff --git a/android_webview/browser/net/android_stream_reader_url_request_job.h b/android_webview/browser/net/android_stream_reader_url_request_job.h
index c516b760f3d931a1be55e9b441d55fa8fc796418..967ce3632706f8e59fafe7f85655b47420f67404 100644
--- a/android_webview/browser/net/android_stream_reader_url_request_job.h
+++ b/android_webview/browser/net/android_stream_reader_url_request_job.h
@@ -41,6 +41,9 @@ class AndroidStreamReaderURLRequestJob : public net::URLRequestJob {
*/
class Delegate {
public:
+ // Called from the IO thread when the Job is about to start.
+ virtual void OnStart() = 0;
+
// This method is called from a worker thread, not from the IO thread.
virtual scoped_ptr<android_webview::InputStream> OpenInputStream(
JNIEnv* env,

Powered by Google App Engine
This is Rietveld 408576698