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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.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: latest 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/browser/renderer_host/resource_dispatcher_host.h
diff --git a/content/browser/renderer_host/resource_dispatcher_host.h b/content/browser/renderer_host/resource_dispatcher_host.h
index 21be2a34aebd608af89b3f88ed9c768e4819874b..cdf30b304969d57fe016171f88224f07e59f9fd3 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.h
+++ b/content/browser/renderer_host/resource_dispatcher_host.h
@@ -264,6 +264,12 @@ class CONTENT_EXPORT ResourceDispatcherHost : public net::URLRequest::Delegate {
return delegate_;
}
+ // Marks the request as "parked". This happens if a request is
+ // redirected cross-site and needs to be resumed by a new render view.
+ void MarkAsTransferredNavigation(
+ const GlobalRequestID& transferred_request_id,
+ net::URLRequest* transferred_request);
+
private:
FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
TestBlockedRequestsProcessDies);
@@ -500,6 +506,11 @@ class CONTENT_EXPORT ResourceDispatcherHost : public net::URLRequest::Delegate {
static bool is_prefetch_enabled_;
bool allow_cross_origin_auth_prompt_;
+ // Maps the request ID of request that is being transferred to a new RVH
+ // to the respective request.
+ typedef std::map<GlobalRequestID, net::URLRequest*> TransferredNavigations;
+ TransferredNavigations transferred_navigations_;
+
DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
};

Powered by Google App Engine
This is Rietveld 408576698