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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // The child process unique ID of the requestor. This duplicates the value 85 // The child process unique ID of the requestor. This duplicates the value
86 // stored on the request by SetChildProcessUniqueIDForRequest in 86 // stored on the request by SetChildProcessUniqueIDForRequest in
87 // url_request_tracking. 87 // url_request_tracking.
88 int child_id() const { return child_id_; } 88 int child_id() const { return child_id_; }
89 89
90 // The IPC route identifier for this request (this identifies the RenderView 90 // The IPC route identifier for this request (this identifies the RenderView
91 // or like-thing in the renderer that the request gets routed to). 91 // or like-thing in the renderer that the request gets routed to).
92 int route_id() const { return route_id_; } 92 int route_id() const { return route_id_; }
93 93
94 // The route_id of pending request can change when it is transferred to a new
95 // page (as in iframe transfer using adoptNode JS API).
96 void set_route_id(int route_id) { route_id_ = route_id; }
97
94 // The pid of the originating process, if the request is sent on behalf of a 98 // The pid of the originating process, if the request is sent on behalf of a
95 // another process. Otherwise it is 0. 99 // another process. Otherwise it is 0.
96 int origin_pid() const { return origin_pid_; } 100 int origin_pid() const { return origin_pid_; }
97 101
98 // Unique identifier for this resource request. 102 // Unique identifier for this resource request.
99 int request_id() const { return request_id_; } 103 int request_id() const { return request_id_; }
100 104
101 // True if |frame_id_| represents a main frame in the RenderView. 105 // True if |frame_id_| represents a main frame in the RenderView.
102 bool is_main_frame() const { return is_main_frame_; } 106 bool is_main_frame() const { return is_main_frame_; }
103 107
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // accessors above for consistency). 239 // accessors above for consistency).
236 bool is_paused_; 240 bool is_paused_;
237 bool called_on_response_started_; 241 bool called_on_response_started_;
238 bool has_started_reading_; 242 bool has_started_reading_;
239 int paused_read_bytes_; 243 int paused_read_bytes_;
240 244
241 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); 245 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo);
242 }; 246 };
243 247
244 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H _ 248 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698