OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and | 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and |
7 // dispatches them to URLRequests. It then forwards the messages from the | 7 // dispatches them to URLRequests. It then forwards the messages from the |
8 // URLRequests back to the correct process for handling. | 8 // URLRequests back to the correct process for handling. |
9 // | 9 // |
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 int route_id, | 415 int route_id, |
416 bool cancel_requests); | 416 bool cancel_requests); |
417 | 417 |
418 void OnRequestResource(int routing_id, | 418 void OnRequestResource(int routing_id, |
419 int request_id, | 419 int request_id, |
420 const ResourceHostMsg_Request& request_data); | 420 const ResourceHostMsg_Request& request_data); |
421 void OnSyncLoad(int request_id, | 421 void OnSyncLoad(int request_id, |
422 const ResourceHostMsg_Request& request_data, | 422 const ResourceHostMsg_Request& request_data, |
423 IPC::Message* sync_result); | 423 IPC::Message* sync_result); |
424 | 424 |
| 425 bool IsRequestIDInUse(const GlobalRequestID& id) const; |
| 426 |
425 // Update the ResourceRequestInfo and internal maps when a request is | 427 // Update the ResourceRequestInfo and internal maps when a request is |
426 // transferred from one process to another. | 428 // transferred from one process to another. |
427 void UpdateRequestForTransfer(int child_id, | 429 void UpdateRequestForTransfer(int child_id, |
428 int route_id, | 430 int route_id, |
429 int request_id, | 431 int request_id, |
430 const ResourceHostMsg_Request& request_data, | 432 const ResourceHostMsg_Request& request_data, |
431 LoaderMap::iterator iter); | 433 LoaderMap::iterator iter); |
432 | 434 |
433 void BeginRequest(int request_id, | 435 void BeginRequest(int request_id, |
434 const ResourceHostMsg_Request& request_data, | 436 const ResourceHostMsg_Request& request_data, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 DelegateMap delegate_map_; | 600 DelegateMap delegate_map_; |
599 | 601 |
600 scoped_ptr<ResourceScheduler> scheduler_; | 602 scoped_ptr<ResourceScheduler> scheduler_; |
601 | 603 |
602 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 604 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
603 }; | 605 }; |
604 | 606 |
605 } // namespace content | 607 } // namespace content |
606 | 608 |
607 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 609 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |