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

Unified Diff: net/url_request/url_request_job.h

Issue 12328072: Remove some calls to URLRequestContext::network_delegate(). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Provide read-only access to network delegate for derived classes. Created 7 years, 9 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_factory_impl_unittest.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 4d985f8a19d9a5b8e06fe200eefd3d2c5eba8037..56e1307cb041b5a051cc4aec8115d51a291bf97a 100644
--- a/net/url_request/url_request_job.h
+++ b/net/url_request/url_request_job.h
@@ -284,6 +284,9 @@ class NET_EXPORT URLRequestJob : public base::RefCounted<URLRequestJob>,
// to get SDCH to emit stats.
void DestroyFilters() { filter_.reset(); }
+ // Provides derived classes with access to the request's network delegate.
+ NetworkDelegate* network_delegate() { return network_delegate_; }
+
// The status of the job.
const URLRequestStatus GetStatus();
@@ -379,6 +382,7 @@ class NET_EXPORT URLRequestJob : public base::RefCounted<URLRequestJob>,
GURL deferred_redirect_url_;
int deferred_redirect_status_code_;
+ // The network delegate to use with this request, if any.
NetworkDelegate* network_delegate_;
base::WeakPtrFactory<URLRequestJob> weak_factory_;
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698