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

Unified Diff: net/url_request/url_request.h

Issue 9808029: Prepending view-source: does not load the source of the userscript. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed extra logging code. Created 8 years, 9 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
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.

Powered by Google App Engine
This is Rietveld 408576698