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 c6f7ba4e4bab705cc7cfd9e2b0527cc72363fd4c..c1fd3bb3bccf6ea18303761569e92ef56a2e2e8a 100644 |
--- a/net/url_request/url_request_job.h |
+++ b/net/url_request/url_request_job.h |
@@ -157,6 +157,13 @@ class NET_EXPORT URLRequestJob |
// The default implementation inspects the response_info_. |
virtual bool IsRedirectResponse(GURL* location, int* http_status_code); |
+ // Called to determine if it is okay to copy the reference fragment from the |
+ // original URL (if existent) to the redirection target when the redirection |
+ // target has no reference fragment. |
+ // |
+ // The default implementation returns true. |
+ virtual bool CopyFragmentOnRedirect(const GURL& location) const; |
+ |
// Called to determine if it is okay to redirect this job to the specified |
// location. This may be used to implement protocol-specific restrictions. |
// If this function returns false, then the URLRequest will fail |