Store original request URL in NavigationEntry
We need the original request URL when requesting desktop sites for situations
where we end up redirected to a page where no user agent detection is performed.
* Adds a OriginalRequestURL field to NavigationEntry.
* Saves out the OriginalRequestURL as part of the NavigationEntry.
Part of upstreaming for b/5119921
BUG=112923
Review URL: http://codereview.chromium.org/9999010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132647 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/public/browser/navigation_entry.h b/content/public/browser/navigation_entry.h
index 49b8eba..9259ff5 100644
--- a/content/public/browser/navigation_entry.h
+++ b/content/public/browser/navigation_entry.h
@@ -138,6 +138,10 @@
// All the SSL flags and state. See content::SSLStatus.
virtual const SSLStatus& GetSSL() const = 0;
virtual SSLStatus& GetSSL() = 0;
+
+ // Store the URL that caused this NavigationEntry to be created.
+ virtual void SetOriginalRequestURL(const GURL& original_url) = 0;
+ virtual const GURL& GetOriginalRequestURL() const = 0;
};
} // namespace content