| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 const GURL& new_url, | 200 const GURL& new_url, |
| 201 bool* defer_redirect); | 201 bool* defer_redirect); |
| 202 virtual void OnAuthRequired(URLRequest* request, | 202 virtual void OnAuthRequired(URLRequest* request, |
| 203 net::AuthChallengeInfo* auth_info); | 203 net::AuthChallengeInfo* auth_info); |
| 204 virtual void OnCertificateRequested( | 204 virtual void OnCertificateRequested( |
| 205 URLRequest* request, | 205 URLRequest* request, |
| 206 net::SSLCertRequestInfo* cert_request_info); | 206 net::SSLCertRequestInfo* cert_request_info); |
| 207 virtual void OnSSLCertificateError(URLRequest* request, | 207 virtual void OnSSLCertificateError(URLRequest* request, |
| 208 int cert_error, | 208 int cert_error, |
| 209 net::X509Certificate* cert); | 209 net::X509Certificate* cert); |
| 210 virtual void OnClientCertificateGenerated(URLRequest* request, |
| 211 net::X509Certificate* cert); |
| 210 virtual void OnSetCookieBlocked(URLRequest* request); | 212 virtual void OnSetCookieBlocked(URLRequest* request); |
| 211 virtual void OnResponseStarted(URLRequest* request); | 213 virtual void OnResponseStarted(URLRequest* request); |
| 212 virtual void OnReadCompleted(URLRequest* request, int bytes_read); | 214 virtual void OnReadCompleted(URLRequest* request, int bytes_read); |
| 213 void OnResponseCompleted(URLRequest* request); | 215 void OnResponseCompleted(URLRequest* request); |
| 214 | 216 |
| 215 // Helper functions to get our extra data out of a request. The given request | 217 // Helper functions to get our extra data out of a request. The given request |
| 216 // must have been one we created so that it has the proper extra data pointer. | 218 // must have been one we created so that it has the proper extra data pointer. |
| 217 static ResourceDispatcherHostRequestInfo* InfoForRequest(URLRequest* request); | 219 static ResourceDispatcherHostRequestInfo* InfoForRequest(URLRequest* request); |
| 218 static const ResourceDispatcherHostRequestInfo* InfoForRequest( | 220 static const ResourceDispatcherHostRequestInfo* InfoForRequest( |
| 219 const URLRequest* request); | 221 const URLRequest* request); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 int max_outstanding_requests_cost_per_process_; | 464 int max_outstanding_requests_cost_per_process_; |
| 463 | 465 |
| 464 // Used during IPC message dispatching so that the handlers can get a pointer | 466 // Used during IPC message dispatching so that the handlers can get a pointer |
| 465 // to the source of the message. | 467 // to the source of the message. |
| 466 Receiver* receiver_; | 468 Receiver* receiver_; |
| 467 | 469 |
| 468 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 470 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
| 469 }; | 471 }; |
| 470 | 472 |
| 471 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 473 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
| OLD | NEW |