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

Unified Diff: net/url_request/url_request_test_job.h

Issue 10392111: Use ByteStream in downloads system to decouple source and sink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix old merge error. Created 8 years, 7 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: 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..a68dd94069166d046a4294e6fea819d553cbe0ce 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 provide a second round of IO pending after the first
+ // set of data has been retrieved. This can be used to (for example)
+ // deliver some data but delay completion of a request.
+ // By default the final completion will not be delayed.
+ virtual bool FinalRoundIOPending();
+
// 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 };

Powered by Google App Engine
This is Rietveld 408576698