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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.h

Issue 7601011: Fix resource loads dropped when iframe is transferred to a new window and original window closes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix crash in tests (RenderThread::current() is NULL) Created 9 years, 4 months 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 d6c5ce70e77034d25b540cbe6d5989761dfcd80e..0bd86eb594210d774e43f56247c566c3801da7e9 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.h
+++ b/content/browser/renderer_host/resource_dispatcher_host.h
@@ -100,6 +100,12 @@ class ResourceDispatcherHost : public net::URLRequest::Delegate {
int request_id,
bool from_renderer);
+ // Assigns the pending request a new routing_id because it was transferred
+ // to a new page.
+ void TransferRequestToNewPage(int process_unique_id,
+ int new_routing_id,
+ int request_id);
+
// Follows a deferred redirect for the given request.
// new_first_party_for_cookies, if non-empty, is the new cookie policy URL
// for the redirected URL. If the cookie policy URL needs changing, pass
@@ -396,6 +402,7 @@ class ResourceDispatcherHost : public net::URLRequest::Delegate {
void OnDataDownloadedACK(int request_id);
void OnUploadProgressACK(int request_id);
void OnCancelRequest(int request_id);
+ void OnTransferRequestToNewPage(const IPC::Message& msg, int request_id);
void OnFollowRedirect(int request_id,
bool has_new_first_party_for_cookies,
const GURL& new_first_party_for_cookies);
« no previous file with comments | « chrome/browser/magic_iframe_browsertest.cc ('k') | content/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698