summaryrefslogtreecommitdiffstats
path: root/content/browser/web_contents/navigation_controller_impl.h
diff options
context:
space:
mode:
authordfalcantara@chromium.org <dfalcantara@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-04 02:38:23 +0000
committerdfalcantara@chromium.org <dfalcantara@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-04 02:38:23 +0000
commit7c16976ce7a48a9cd9715c1ed87696386a743ad6 (patch)
tree0c6c6bd3f90da70c71ba2f9b23a6ff1719f09339 /content/browser/web_contents/navigation_controller_impl.h
parent9486104d19c92fd4b91d2cf358800009859f24c6 (diff)
downloadchromium_src-7c16976ce7a48a9cd9715c1ed87696386a743ad6.zip
chromium_src-7c16976ce7a48a9cd9715c1ed87696386a743ad6.tar.gz
chromium_src-7c16976ce7a48a9cd9715c1ed87696386a743ad6.tar.bz2
[RDS] Reloads a page using the original request URL
When toggling between different versions of a website by changing user agents, we often need to reload using an earlier URL in a redirect chain to avoid redirects caused by user-agent detection. * Adds a new type of reload that hooks into WebFrame::reloadWithOverrideURL, added in https://bugs.webkit.org/show_bug.cgi?id=89788 * Changes the original request URL we were saving before to be the URL sent back as part of WebKit's original request. This URL often differs from the URL stored at the beginning at the redirect chain. It's sent back as a new field when the renderer navigates. Part of upstreaming Chrome for Android. Internal BUG=6272286 BUG=112923 TEST= Review URL: https://chromiumcodereview.appspot.com/10704048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150003 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/web_contents/navigation_controller_impl.h')
-rw-r--r--content/browser/web_contents/navigation_controller_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/web_contents/navigation_controller_impl.h b/content/browser/web_contents/navigation_controller_impl.h
index a2dddb8..ac3106c 100644
--- a/content/browser/web_contents/navigation_controller_impl.h
+++ b/content/browser/web_contents/navigation_controller_impl.h
@@ -132,6 +132,11 @@ class CONTENT_EXPORT NavigationControllerImpl
content::SiteInstance* instance,
int32 page_id) const;
+ // Reloads the current entry using the original URL used to create it. This
+ // is used for cases where the user wants to refresh a page using a different
+ // user agent after following a redirect.
+ void ReloadOriginalRequestURL(bool check_for_repost);
+
// Transient entry -----------------------------------------------------------
// Adds an entry that is returned by GetActiveEntry(). The entry is