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

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

Issue 7647003: Update routing id of pending resource requests for reparented iframes. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed Copyright that presubmit complains about. 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
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host.cc ('k') | content/common/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/resource_dispatcher_host_request_info.h
diff --git a/content/browser/renderer_host/resource_dispatcher_host_request_info.h b/content/browser/renderer_host/resource_dispatcher_host_request_info.h
index 5afdc3e541e7634013d9b17f68f0dddf5ea992d9..1e39b77f21eb702eaa7b8767119f9a96c9f07084 100644
--- a/content/browser/renderer_host/resource_dispatcher_host_request_info.h
+++ b/content/browser/renderer_host/resource_dispatcher_host_request_info.h
@@ -91,6 +91,10 @@ class ResourceDispatcherHostRequestInfo : public net::URLRequest::UserData {
// or like-thing in the renderer that the request gets routed to).
int route_id() const { return route_id_; }
+ // The route_id of pending request can change when it is transferred to a new
+ // page (as in iframe transfer using adoptNode JS API).
+ void set_route_id(int route_id) { route_id_ = route_id; }
+
// The pid of the originating process, if the request is sent on behalf of a
// another process. Otherwise it is 0.
int origin_pid() const { return origin_pid_; }
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host.cc ('k') | content/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698