| 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 | 458 |
| 459 // Deletes the pending request identified by the iterator passed in. | 459 // Deletes the pending request identified by the iterator passed in. |
| 460 // This function will invalidate the iterator passed in. Callers should | 460 // This function will invalidate the iterator passed in. Callers should |
| 461 // not rely on this iterator being valid on return. | 461 // not rely on this iterator being valid on return. |
| 462 void RemovePendingRequest(const PendingRequestList::iterator& iter); | 462 void RemovePendingRequest(const PendingRequestList::iterator& iter); |
| 463 | 463 |
| 464 // Notify our observers that we started receiving a response for a request. | 464 // Notify our observers that we started receiving a response for a request. |
| 465 void NotifyResponseStarted(URLRequest* request, int process_id); | 465 void NotifyResponseStarted(URLRequest* request, int process_id); |
| 466 | 466 |
| 467 // Notify our observers that a request has been redirected. | 467 // Notify our observers that a request has been redirected. |
| 468 void NofityReceivedRedirect(URLRequest* request, | 468 void NotifyReceivedRedirect(URLRequest* request, |
| 469 int process_id, | 469 int process_id, |
| 470 const GURL& new_url); | 470 const GURL& new_url); |
| 471 | 471 |
| 472 // Tries to handle the url with an external protocol. If the request is | 472 // Tries to handle the url with an external protocol. If the request is |
| 473 // handled, the function returns true. False otherwise. | 473 // handled, the function returns true. False otherwise. |
| 474 bool HandleExternalProtocol(int request_id, | 474 bool HandleExternalProtocol(int request_id, |
| 475 int process_id, | 475 int process_id, |
| 476 int tab_contents_id, | 476 int tab_contents_id, |
| 477 const GURL& url, | 477 const GURL& url, |
| 478 ResourceType::Type resource_type, | 478 ResourceType::Type resource_type, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 // Used during IPC message dispatching so that the handlers can get a pointer | 572 // Used during IPC message dispatching so that the handlers can get a pointer |
| 573 // to the source of the message. | 573 // to the source of the message. |
| 574 Receiver* receiver_; | 574 Receiver* receiver_; |
| 575 | 575 |
| 576 static bool g_is_http_prioritization_enabled; | 576 static bool g_is_http_prioritization_enabled; |
| 577 | 577 |
| 578 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 578 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
| 579 }; | 579 }; |
| 580 | 580 |
| 581 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 581 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
| OLD | NEW |