| 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
|
|
|