OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 const GURL& new_url, | 204 const GURL& new_url, |
205 bool* defer_redirect); | 205 bool* defer_redirect); |
206 virtual void OnAuthRequired(URLRequest* request, | 206 virtual void OnAuthRequired(URLRequest* request, |
207 net::AuthChallengeInfo* auth_info); | 207 net::AuthChallengeInfo* auth_info); |
208 virtual void OnCertificateRequested( | 208 virtual void OnCertificateRequested( |
209 URLRequest* request, | 209 URLRequest* request, |
210 net::SSLCertRequestInfo* cert_request_info); | 210 net::SSLCertRequestInfo* cert_request_info); |
211 virtual void OnSSLCertificateError(URLRequest* request, | 211 virtual void OnSSLCertificateError(URLRequest* request, |
212 int cert_error, | 212 int cert_error, |
213 net::X509Certificate* cert); | 213 net::X509Certificate* cert); |
214 virtual void OnSetCookieBlocked(URLRequest* request); | 214 virtual void OnSetCookie(URLRequest* request, |
| 215 const std::string& cookie_line, |
| 216 bool blocked_by_policy); |
215 virtual void OnResponseStarted(URLRequest* request); | 217 virtual void OnResponseStarted(URLRequest* request); |
216 virtual void OnReadCompleted(URLRequest* request, int bytes_read); | 218 virtual void OnReadCompleted(URLRequest* request, int bytes_read); |
217 void OnResponseCompleted(URLRequest* request); | 219 void OnResponseCompleted(URLRequest* request); |
218 | 220 |
219 // Helper functions to get our extra data out of a request. The given request | 221 // Helper functions to get our extra data out of a request. The given request |
220 // must have been one we created so that it has the proper extra data pointer. | 222 // must have been one we created so that it has the proper extra data pointer. |
221 static ResourceDispatcherHostRequestInfo* InfoForRequest(URLRequest* request); | 223 static ResourceDispatcherHostRequestInfo* InfoForRequest(URLRequest* request); |
222 static const ResourceDispatcherHostRequestInfo* InfoForRequest( | 224 static const ResourceDispatcherHostRequestInfo* InfoForRequest( |
223 const URLRequest* request); | 225 const URLRequest* request); |
224 | 226 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 int max_outstanding_requests_cost_per_process_; | 487 int max_outstanding_requests_cost_per_process_; |
486 | 488 |
487 // Used during IPC message dispatching so that the handlers can get a pointer | 489 // Used during IPC message dispatching so that the handlers can get a pointer |
488 // to the source of the message. | 490 // to the source of the message. |
489 Receiver* receiver_; | 491 Receiver* receiver_; |
490 | 492 |
491 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 493 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
492 }; | 494 }; |
493 | 495 |
494 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 496 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |