| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 299 |
| 300 // Force cancels any pending requests for the given process. | 300 // Force cancels any pending requests for the given process. |
| 301 void CancelRequestsForProcess(int process_id); | 301 void CancelRequestsForProcess(int process_id); |
| 302 | 302 |
| 303 // Force cancels any pending requests for the given route id. This method | 303 // Force cancels any pending requests for the given route id. This method |
| 304 // acts like CancelRequestsForProcess when route_id is -1. | 304 // acts like CancelRequestsForProcess when route_id is -1. |
| 305 void CancelRequestsForRoute(int process_id, int route_id); | 305 void CancelRequestsForRoute(int process_id, int route_id); |
| 306 | 306 |
| 307 // URLRequest::Delegate | 307 // URLRequest::Delegate |
| 308 virtual void OnReceivedRedirect(URLRequest* request, | 308 virtual void OnReceivedRedirect(URLRequest* request, |
| 309 const GURL& new_url); | 309 const GURL& new_url, |
| 310 bool* defer_redirect); |
| 310 virtual void OnAuthRequired(URLRequest* request, | 311 virtual void OnAuthRequired(URLRequest* request, |
| 311 net::AuthChallengeInfo* auth_info); | 312 net::AuthChallengeInfo* auth_info); |
| 312 virtual void OnSSLCertificateError(URLRequest* request, | 313 virtual void OnSSLCertificateError(URLRequest* request, |
| 313 int cert_error, | 314 int cert_error, |
| 314 net::X509Certificate* cert); | 315 net::X509Certificate* cert); |
| 315 virtual void OnResponseStarted(URLRequest* request); | 316 virtual void OnResponseStarted(URLRequest* request); |
| 316 virtual void OnReadCompleted(URLRequest* request, int bytes_read); | 317 virtual void OnReadCompleted(URLRequest* request, int bytes_read); |
| 317 void OnResponseCompleted(URLRequest* request); | 318 void OnResponseCompleted(URLRequest* request); |
| 318 | 319 |
| 319 // Helper function to get our extra data out of a request. The given request | 320 // Helper function to get our extra data out of a request. The given request |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 int max_outstanding_requests_cost_per_process_; | 556 int max_outstanding_requests_cost_per_process_; |
| 556 | 557 |
| 557 // Used during IPC message dispatching so that the handlers can get a pointer | 558 // Used during IPC message dispatching so that the handlers can get a pointer |
| 558 // to the source of the message. | 559 // to the source of the message. |
| 559 Receiver* receiver_; | 560 Receiver* receiver_; |
| 560 | 561 |
| 561 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 562 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
| 562 }; | 563 }; |
| 563 | 564 |
| 564 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 565 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
| OLD | NEW |