Index: net/url_request/url_request_test_job.h |
diff --git a/net/url_request/url_request_test_job.h b/net/url_request/url_request_test_job.h |
index 81e41be6877618049050e8e9c7042cb3188e3ebd..5e1fb91def2b730f757d66da59b62abc12ee7e15 100644 |
--- a/net/url_request/url_request_test_job.h |
+++ b/net/url_request/url_request_test_job.h |
@@ -104,6 +104,12 @@ class NET_EXPORT_PRIVATE URLRequestTestJob : public URLRequestJob { |
int* http_status_code) OVERRIDE; |
protected: |
+ // Override to specify whether the next read done from this job will |
+ // return IO pending. This controls whether or not the WAITING state will |
+ // transition back to WAITING or to DATA_AVAILABLE after an asynchronous |
+ // read is processed. |
+ virtual bool NextReadAsync(); |
+ |
// This is what operation we are going to do next when this job is handled. |
// When the stage is DONE, this job will not be put on the queue. |
enum Stage { WAITING, DATA_AVAILABLE, ALL_DATA, DONE }; |