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

Unified Diff: net/url_request/url_request.h

Issue 12328072: Remove some calls to URLRequestContext::network_delegate(). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 7 years, 10 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 | « no previous file | net/url_request/url_request.cc » ('j') | net/url_request/url_request_http_job.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 5580b63eef8925633345c155f356b403b120a26d..c61bac4602a29cf7712d5328124a00b58aa98554 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -531,6 +531,10 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// Returns a globally unique identifier for this request.
uint64 identifier() const { return identifier_; }
+ // Returns true if the request has a network delegate that can throttle the
+ // request. If the request has no network delegate, it will also return true.
+ bool CanThrottle() const;
+
// This method is called to start the request. The delegate will receive
// a OnResponseStarted callback when the request is started.
void Start();
@@ -608,6 +612,9 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// Used to specify the context (cookie store, cache) for this request.
const URLRequestContext* context() const;
+ // Used to access the network delegate for this request.
+ NetworkDelegate* network_delegate() const;
+
const BoundNetLog& net_log() const { return net_log_; }
// Returns the expected content size if available
« no previous file with comments | « no previous file | net/url_request/url_request.cc » ('j') | net/url_request/url_request_http_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698