| 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 |
| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // accessors above for consistency). | 232 // accessors above for consistency). |
| 229 bool is_paused_; | 233 bool is_paused_; |
| 230 bool called_on_response_started_; | 234 bool called_on_response_started_; |
| 231 bool has_started_reading_; | 235 bool has_started_reading_; |
| 232 int paused_read_bytes_; | 236 int paused_read_bytes_; |
| 233 | 237 |
| 234 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); | 238 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); |
| 235 }; | 239 }; |
| 236 | 240 |
| 237 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ | 241 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ |
| OLD | NEW |