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

Unified Diff: net/url_request/url_request_job.h

Issue 122453002: Allows deferral of a URLRequest just before talking to the network, at (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated content-length in test to actual length Created 6 years, 11 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
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job.h
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h
index d4b731242cb7a9548c205a267e57cbccb461fee2..faeda0009ceef0fa01597f7b78f8933c0f7f2b71 100644
--- a/net/url_request/url_request_job.h
+++ b/net/url_request/url_request_job.h
@@ -179,6 +179,9 @@ class NET_EXPORT URLRequestJob
// Continue processing the request ignoring the last error.
virtual void ContinueDespiteLastError();
+ // Continue with the network request.
+ virtual void ResumeNetworkStart();
+
void FollowDeferredRedirect();
// Returns true if the Job is done producing response data and has called
@@ -232,6 +235,9 @@ class NET_EXPORT URLRequestJob
// Delegates to URLRequest::Delegate.
bool CanEnablePrivacyMode() const;
+ // Notifies the job that the network is about to be used.
+ void NotifyBeforeNetworkStart(bool* defer);
+
// Notifies the job that headers have been received.
void NotifyHeadersComplete();
@@ -257,7 +263,7 @@ class NET_EXPORT URLRequestJob
void NotifyCanceled();
// Notifies the job the request should be restarted.
- // Should only be called if the job has not started a resposne.
+ // Should only be called if the job has not started a response.
void NotifyRestartRequired();
// See corresponding functions in url_request.h.
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698