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 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 fowards the messages from the | 7 // dispatches them to URLRequests. It then fowards 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 int request_id, | 483 int request_id, |
484 const ViewHostMsg_Resource_Request& request_data); | 484 const ViewHostMsg_Resource_Request& request_data); |
485 void OnSyncLoad(int request_id, | 485 void OnSyncLoad(int request_id, |
486 const ViewHostMsg_Resource_Request& request_data, | 486 const ViewHostMsg_Resource_Request& request_data, |
487 IPC::Message* sync_result); | 487 IPC::Message* sync_result); |
488 void BeginRequest(int request_id, | 488 void BeginRequest(int request_id, |
489 const ViewHostMsg_Resource_Request& request_data, | 489 const ViewHostMsg_Resource_Request& request_data, |
490 IPC::Message* sync_result, // only valid for sync | 490 IPC::Message* sync_result, // only valid for sync |
491 int route_id); // only valid for async | 491 int route_id); // only valid for async |
492 void OnDataReceivedACK(int request_id); | 492 void OnDataReceivedACK(int request_id); |
493 void OnDownloadProgressACK(int request_id); | |
494 void OnUploadProgressACK(int request_id); | 493 void OnUploadProgressACK(int request_id); |
495 void OnCancelRequest(int request_id); | 494 void OnCancelRequest(int request_id); |
496 | 495 |
497 // Returns true if the message passed in is a resource related message. | 496 // Returns true if the message passed in is a resource related message. |
498 static bool IsResourceDispatcherHostMessage(const IPC::Message&); | 497 static bool IsResourceDispatcherHostMessage(const IPC::Message&); |
499 | 498 |
500 PendingRequestList pending_requests_; | 499 PendingRequestList pending_requests_; |
501 | 500 |
502 // We cache the UI message loop so we can create new UI-related objects on it. | 501 // We cache the UI message loop so we can create new UI-related objects on it. |
503 MessageLoop* ui_loop_; | 502 MessageLoop* ui_loop_; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 // Used during IPC message dispatching so that the handlers can get a pointer | 562 // Used during IPC message dispatching so that the handlers can get a pointer |
564 // to the source of the message. | 563 // to the source of the message. |
565 Receiver* receiver_; | 564 Receiver* receiver_; |
566 | 565 |
567 static bool g_is_http_prioritization_enabled; | 566 static bool g_is_http_prioritization_enabled; |
568 | 567 |
569 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 568 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
570 }; | 569 }; |
571 | 570 |
572 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 571 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |