| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ | 6 #define CHROME_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 24 matching lines...) Expand all Loading... |
| 35 ChildProcessInfo::ProcessType process_type, | 35 ChildProcessInfo::ProcessType process_type, |
| 36 int child_id, | 36 int child_id, |
| 37 int route_id, | 37 int route_id, |
| 38 int request_id, | 38 int request_id, |
| 39 const std::string& frame_origin, | 39 const std::string& frame_origin, |
| 40 const std::string& main_frame_origin, | 40 const std::string& main_frame_origin, |
| 41 ResourceType::Type resource_type, | 41 ResourceType::Type resource_type, |
| 42 uint64 upload_size, | 42 uint64 upload_size, |
| 43 bool is_download, | 43 bool is_download, |
| 44 bool allow_download, | 44 bool allow_download, |
| 45 bool has_user_gesture, |
| 45 int host_renderer_id, | 46 int host_renderer_id, |
| 46 int host_render_view_id); | 47 int host_render_view_id); |
| 47 virtual ~ResourceDispatcherHostRequestInfo(); | 48 virtual ~ResourceDispatcherHostRequestInfo(); |
| 48 | 49 |
| 49 // Top-level ResourceHandler servicing this request. | 50 // Top-level ResourceHandler servicing this request. |
| 50 ResourceHandler* resource_handler() { return resource_handler_.get(); } | 51 ResourceHandler* resource_handler() { return resource_handler_.get(); } |
| 51 | 52 |
| 52 // CrossSiteResourceHandler for this request, if it is a cross-site request. | 53 // CrossSiteResourceHandler for this request, if it is a cross-site request. |
| 53 // (NULL otherwise.) This handler is part of the chain of ResourceHandlers | 54 // (NULL otherwise.) This handler is part of the chain of ResourceHandlers |
| 54 // pointed to by resource_handler, and is not owned by this class. | 55 // pointed to by resource_handler, and is not owned by this class. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 89 |
| 89 // Number of messages we've sent to the renderer that we haven't gotten an | 90 // Number of messages we've sent to the renderer that we haven't gotten an |
| 90 // ACK for. This allows us to avoid having too many messages in flight. | 91 // ACK for. This allows us to avoid having too many messages in flight. |
| 91 int pending_data_count() const { return pending_data_count_; } | 92 int pending_data_count() const { return pending_data_count_; } |
| 92 void IncrementPendingDataCount() { pending_data_count_++; } | 93 void IncrementPendingDataCount() { pending_data_count_++; } |
| 93 void DecrementPendingDataCount() { pending_data_count_--; } | 94 void DecrementPendingDataCount() { pending_data_count_--; } |
| 94 | 95 |
| 95 // Downloads are allowed only as a top level request. | 96 // Downloads are allowed only as a top level request. |
| 96 bool allow_download() const { return allow_download_; } | 97 bool allow_download() const { return allow_download_; } |
| 97 | 98 |
| 99 bool has_user_gesture() const { return has_user_gesture_; } |
| 100 |
| 98 // Whether this is a download. | 101 // Whether this is a download. |
| 99 bool is_download() const { return is_download_; } | 102 bool is_download() const { return is_download_; } |
| 100 void set_is_download(bool download) { is_download_ = download; } | 103 void set_is_download(bool download) { is_download_ = download; } |
| 101 | 104 |
| 102 // The number of clients that have called pause on this request. | 105 // The number of clients that have called pause on this request. |
| 103 int pause_count() const { return pause_count_; } | 106 int pause_count() const { return pause_count_; } |
| 104 void set_pause_count(int count) { pause_count_ = count; } | 107 void set_pause_count(int count) { pause_count_ = count; } |
| 105 | 108 |
| 106 // The security origin of the frame making this request. | 109 // The security origin of the frame making this request. |
| 107 const std::string& frame_origin() const { return frame_origin_; } | 110 const std::string& frame_origin() const { return frame_origin_; } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 CrossSiteResourceHandler* cross_site_handler_; // Non-owning, may be NULL. | 210 CrossSiteResourceHandler* cross_site_handler_; // Non-owning, may be NULL. |
| 208 scoped_refptr<LoginHandler> login_handler_; | 211 scoped_refptr<LoginHandler> login_handler_; |
| 209 scoped_refptr<SSLClientAuthHandler> ssl_client_auth_handler_; | 212 scoped_refptr<SSLClientAuthHandler> ssl_client_auth_handler_; |
| 210 ChildProcessInfo::ProcessType process_type_; | 213 ChildProcessInfo::ProcessType process_type_; |
| 211 int child_id_; | 214 int child_id_; |
| 212 int route_id_; | 215 int route_id_; |
| 213 int request_id_; | 216 int request_id_; |
| 214 int pending_data_count_; | 217 int pending_data_count_; |
| 215 bool is_download_; | 218 bool is_download_; |
| 216 bool allow_download_; | 219 bool allow_download_; |
| 220 bool has_user_gesture_; |
| 217 int pause_count_; | 221 int pause_count_; |
| 218 std::string frame_origin_; | 222 std::string frame_origin_; |
| 219 std::string main_frame_origin_; | 223 std::string main_frame_origin_; |
| 220 ResourceType::Type resource_type_; | 224 ResourceType::Type resource_type_; |
| 221 bool replace_extension_localization_templates_; | 225 bool replace_extension_localization_templates_; |
| 222 net::LoadState last_load_state_; | 226 net::LoadState last_load_state_; |
| 223 uint64 upload_size_; | 227 uint64 upload_size_; |
| 224 uint64 last_upload_position_; | 228 uint64 last_upload_position_; |
| 225 base::TimeTicks last_upload_ticks_; | 229 base::TimeTicks last_upload_ticks_; |
| 226 bool waiting_for_upload_progress_ack_; | 230 bool waiting_for_upload_progress_ack_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 239 | 243 |
| 240 // Contains the id of the host renderer. | 244 // Contains the id of the host renderer. |
| 241 int host_renderer_id_; | 245 int host_renderer_id_; |
| 242 // Contains the id of the host render view. | 246 // Contains the id of the host render view. |
| 243 int host_render_view_id_; | 247 int host_render_view_id_; |
| 244 | 248 |
| 245 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); | 249 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); |
| 246 }; | 250 }; |
| 247 | 251 |
| 248 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ | 252 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ |
| OLD | NEW |