OLD | NEW |
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 Loading... |
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 | |
98 // The pid of the originating process, if the request is sent on behalf of a | 94 // The pid of the originating process, if the request is sent on behalf of a |
99 // another process. Otherwise it is 0. | 95 // another process. Otherwise it is 0. |
100 int origin_pid() const { return origin_pid_; } | 96 int origin_pid() const { return origin_pid_; } |
101 | 97 |
102 // Unique identifier for this resource request. | 98 // Unique identifier for this resource request. |
103 int request_id() const { return request_id_; } | 99 int request_id() const { return request_id_; } |
104 | 100 |
105 // True if |frame_id_| represents a main frame in the RenderView. | 101 // True if |frame_id_| represents a main frame in the RenderView. |
106 bool is_main_frame() const { return is_main_frame_; } | 102 bool is_main_frame() const { return is_main_frame_; } |
107 | 103 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // accessors above for consistency). | 228 // accessors above for consistency). |
233 bool is_paused_; | 229 bool is_paused_; |
234 bool called_on_response_started_; | 230 bool called_on_response_started_; |
235 bool has_started_reading_; | 231 bool has_started_reading_; |
236 int paused_read_bytes_; | 232 int paused_read_bytes_; |
237 | 233 |
238 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); | 234 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); |
239 }; | 235 }; |
240 | 236 |
241 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ | 237 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ |
OLD | NEW |