summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request.h
diff options
context:
space:
mode:
authorbcwhite@chromium.org <bcwhite@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 16:37:42 +0000
committerbcwhite@chromium.org <bcwhite@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 16:37:42 +0000
commit847c0fa90f4b8c1ab948d3d230f2fcc428afe2a9 (patch)
treedce4fc7bd0ca806e28aeade005a1137cea0aac7d /net/url_request/url_request.h
parent6f3fef1f11f4acd4adc2fb6e2fb9870b7f40ffdf (diff)
downloadchromium_src-847c0fa90f4b8c1ab948d3d230f2fcc428afe2a9.zip
chromium_src-847c0fa90f4b8c1ab948d3d230f2fcc428afe2a9.tar.gz
chromium_src-847c0fa90f4b8c1ab948d3d230f2fcc428afe2a9.tar.bz2
allow changing headers by delegate_ during a redirect
BUG=157154 Review URL: https://chromiumcodereview.appspot.com/11360054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.h')
-rw-r--r--net/url_request/url_request.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 737cef8..f092f50 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -538,6 +538,10 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// and the response has not yet been called).
bool is_pending() const { return is_pending_; }
+ // Returns true if the request is in the process of redirecting to a new
+ // URL but has not yet initiated the new request.
+ bool is_redirecting() const { return is_redirecting_; }
+
// Returns the error status of the request.
const URLRequestStatus& status() const { return status_; }
@@ -784,6 +788,11 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// whether the job is active.
bool is_pending_;
+ // Indicates if the request is in the process of redirecting to a new
+ // location. It is true from the time the headers complete until a
+ // new request begins.
+ bool is_redirecting_;
+
// Number of times we're willing to redirect. Used to guard against
// infinite redirects.
int redirect_limit_;