OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This is the browser side of the resource dispatcher, it receives requests | 5 // This is the browser side of the resource dispatcher, it receives requests |
6 // from the RenderProcessHosts, and dispatches them to URLRequests. It then | 6 // from the RenderProcessHosts, and dispatches them to URLRequests. It then |
7 // fowards the messages from the URLRequests back to the correct process for | 7 // fowards the messages from the URLRequests back to the correct process for |
8 // handling. | 8 // handling. |
9 // | 9 // |
10 // See http://wiki.corp.google.com/twiki/bin/view/Main/ChromeMultiProcessResourc
eLoading | 10 // See http://wiki.corp.google.com/twiki/bin/view/Main/ChromeMultiProcessResourc
eLoading |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // replaced with an error message and all other resources are entirely | 171 // replaced with an error message and all other resources are entirely |
172 // filtered out. | 172 // filtered out. |
173 FilterPolicy::Type filter_policy; | 173 FilterPolicy::Type filter_policy; |
174 | 174 |
175 net::LoadState last_load_state; | 175 net::LoadState last_load_state; |
176 | 176 |
177 uint64 upload_size; | 177 uint64 upload_size; |
178 | 178 |
179 uint64 last_upload_position; | 179 uint64 last_upload_position; |
180 | 180 |
181 TimeTicks last_upload_ticks; | 181 base::TimeTicks last_upload_ticks; |
182 | 182 |
183 bool waiting_for_upload_progress_ack; | 183 bool waiting_for_upload_progress_ack; |
184 | 184 |
185 private: | 185 private: |
186 // Request is temporarily not handling network data. Should be used only | 186 // Request is temporarily not handling network data. Should be used only |
187 // by the ResourceDispatcherHost, not the event handlers. | 187 // by the ResourceDispatcherHost, not the event handlers. |
188 bool is_paused; | 188 bool is_paused; |
189 | 189 |
190 // Whether this request has started reading any bytes from the response | 190 // Whether this request has started reading any bytes from the response |
191 // yet. Will be true after the first (unpaused) call to Read. | 191 // yet. Will be true after the first (unpaused) call to Read. |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 // For running tasks. | 481 // For running tasks. |
482 ScopedRunnableMethodFactory<ResourceDispatcherHost> method_runner_; | 482 ScopedRunnableMethodFactory<ResourceDispatcherHost> method_runner_; |
483 | 483 |
484 // True if the resource dispatcher host has been shut down. | 484 // True if the resource dispatcher host has been shut down. |
485 bool is_shutdown_; | 485 bool is_shutdown_; |
486 | 486 |
487 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcherHost); | 487 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcherHost); |
488 }; | 488 }; |
489 | 489 |
490 #endif // CHROME_BROWSER_RESOURCE_DISPATCHER_HOST_H__ | 490 #endif // CHROME_BROWSER_RESOURCE_DISPATCHER_HOST_H__ |
OLD | NEW |