summaryrefslogtreecommitdiffstats
path: root/content/browser/tab_contents/navigation_controller.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-03 02:00:48 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-03 02:00:48 +0000
commit4ad5d77d96dfc6f08a845b6871ecbffa64d6f6e2 (patch)
tree269f9c3132012cea865b9630082ba9009d08f8df /content/browser/tab_contents/navigation_controller.h
parent143ee25a94004844d0edc8ab5c57913af5d2056f (diff)
downloadchromium_src-4ad5d77d96dfc6f08a845b6871ecbffa64d6f6e2.zip
chromium_src-4ad5d77d96dfc6f08a845b6871ecbffa64d6f6e2.tar.gz
chromium_src-4ad5d77d96dfc6f08a845b6871ecbffa64d6f6e2.tar.bz2
Fix a bug where redirect chain gets lost on process swap.
BUG=79520 TEST= Review URL: http://codereview.chromium.org/8669014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents/navigation_controller.h')
-rw-r--r--content/browser/tab_contents/navigation_controller.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/content/browser/tab_contents/navigation_controller.h b/content/browser/tab_contents/navigation_controller.h
index 5d99842..1e8096d 100644
--- a/content/browser/tab_contents/navigation_controller.h
+++ b/content/browser/tab_contents/navigation_controller.h
@@ -14,6 +14,7 @@
#include "base/memory/linked_ptr.h"
#include "base/time.h"
#include "googleurl/src/gurl.h"
+#include "content/browser/renderer_host/global_request_id.h"
#include "content/browser/ssl/ssl_manager.h"
#include "content/common/content_export.h"
#include "content/public/browser/navigation_type.h"
@@ -187,6 +188,20 @@ class CONTENT_EXPORT NavigationController {
content::PageTransition type,
const std::string& extra_headers);
+ // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new
+ // navigation as being transferred from one RVH to another. In this case the
+ // browser can recycle the old request once the new renderer wants to
+ // navigate.
+ // |transferred_global_request_id| identifies the request ID of the old
+ // request.
+ void TransferURL(
+ const GURL& url,
+ const GURL& referrer,
+ content::PageTransition transition,
+ const std::string& extra_headers,
+ const GlobalRequestID& transferred_global_request_id,
+ bool is_renderer_initiated);
+
// Loads the current page if this NavigationController was restored from
// history and the current page has not loaded yet.
void LoadIfNecessary();