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

Unified Diff: content/public/renderer/navigation_state.h

Issue 8669014: Fix a bug where redirect chain gets lost on process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: conditional disabling Created 9 years 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: content/public/renderer/navigation_state.h
diff --git a/content/public/renderer/navigation_state.h b/content/public/renderer/navigation_state.h
index efdcac1e31f06ce0536d47792e1158706f356bb1..cb6bc64208028a8476ddb7d4feea5af84486b9da 100644
--- a/content/public/renderer/navigation_state.h
+++ b/content/public/renderer/navigation_state.h
@@ -57,6 +57,23 @@ class NavigationState {
void set_was_within_same_page(bool value) { was_within_same_page_ = value; }
bool was_within_same_page() const { return was_within_same_page_; }
+ // transferred_request_child_id and transferred_request_request_id identify
+ // a request that has been created before the navigation is being transferred
+ // to a new renderer. This is used to recycle the old request once the new
+ // renderer tries to pick up the navigation of the old one.
+ void set_transferred_request_child_id(int value) {
+ transferred_request_child_id_ = value;
+ }
+ int transferred_request_child_id() const {
+ return transferred_request_child_id_;
+ }
+ void set_transferred_request_request_id(int value) {
+ transferred_request_request_id_ = value;
+ }
+ int transferred_request_request_id() const {
+ return transferred_request_request_id_;
+ }
+
private:
NavigationState(content::PageTransition transition_type,
bool is_content_initiated,
@@ -70,6 +87,8 @@ class NavigationState {
int pending_history_list_offset_;
bool was_within_same_page_;
+ int transferred_request_child_id_;
+ int transferred_request_request_id_;
DISALLOW_COPY_AND_ASSIGN(NavigationState);
};
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.h ('k') | content/public/renderer/navigation_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698