Index: net/url_request/url_request.h |
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h |
index d73d2fec6a34b05861710e347ab248404af8bb18..1afaf1d50be924b481340b7cad6b2ef4f1fef1ee 100644 |
--- a/net/url_request/url_request.h |
+++ b/net/url_request/url_request.h |
@@ -313,6 +313,10 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe), |
// redirects, this vector will contain one element. |
const std::vector<GURL>& url_chain() const { return url_chain_; } |
const GURL& url() const { return url_chain_.back(); } |
+ // The virtual URL is kept to determine if the original request had any |
+ // special modifiers, e.g. "view-source:". |
+ const GURL& virtual_url() const { return virtual_url_; } |
+ void set_virtual_url(const GURL& virtual_url); |
// The URL that should be consulted for the third-party cookie blocking |
// policy. |
@@ -685,6 +689,7 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe), |
scoped_refptr<URLRequestJob> job_; |
scoped_refptr<UploadData> upload_; |
std::vector<GURL> url_chain_; |
+ GURL virtual_url_; |
GURL first_party_for_cookies_; |
GURL delegate_redirect_url_; |
std::string method_; // "GET", "POST", etc. Should be all uppercase. |