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 forwards the messages from the | 7 // dispatches them to URLRequests. It then forwards 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 196 matching lines...) Loading... |
207 const GURL& new_url, | 207 const GURL& new_url, |
208 bool* defer_redirect); | 208 bool* defer_redirect); |
209 virtual void OnAuthRequired(net::URLRequest* request, | 209 virtual void OnAuthRequired(net::URLRequest* request, |
210 net::AuthChallengeInfo* auth_info); | 210 net::AuthChallengeInfo* auth_info); |
211 virtual void OnCertificateRequested( | 211 virtual void OnCertificateRequested( |
212 net::URLRequest* request, | 212 net::URLRequest* request, |
213 net::SSLCertRequestInfo* cert_request_info); | 213 net::SSLCertRequestInfo* cert_request_info); |
214 virtual void OnSSLCertificateError(net::URLRequest* request, | 214 virtual void OnSSLCertificateError(net::URLRequest* request, |
215 int cert_error, | 215 int cert_error, |
216 net::X509Certificate* cert); | 216 net::X509Certificate* cert); |
| 217 virtual void OnGetCookies(net::URLRequest* request, |
| 218 bool blocked_by_policy); |
217 virtual void OnSetCookie(net::URLRequest* request, | 219 virtual void OnSetCookie(net::URLRequest* request, |
218 const std::string& cookie_line, | 220 const std::string& cookie_line, |
219 const net::CookieOptions& options, | 221 const net::CookieOptions& options, |
220 bool blocked_by_policy); | 222 bool blocked_by_policy); |
221 virtual void OnResponseStarted(net::URLRequest* request); | 223 virtual void OnResponseStarted(net::URLRequest* request); |
222 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read); | 224 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read); |
223 void OnResponseCompleted(net::URLRequest* request); | 225 void OnResponseCompleted(net::URLRequest* request); |
224 | 226 |
225 // Helper functions to get our extra data out of a request. The given request | 227 // Helper functions to get our extra data out of a request. The given request |
226 // must have been one we created so that it has the proper extra data pointer. | 228 // must have been one we created so that it has the proper extra data pointer. |
(...skipping 296 matching lines...) Loading... |
523 // Used during IPC message dispatching so that the handlers can get a pointer | 525 // Used during IPC message dispatching so that the handlers can get a pointer |
524 // to the source of the message. | 526 // to the source of the message. |
525 Receiver* receiver_; | 527 Receiver* receiver_; |
526 | 528 |
527 static bool is_prefetch_enabled_; | 529 static bool is_prefetch_enabled_; |
528 | 530 |
529 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 531 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
530 }; | 532 }; |
531 | 533 |
532 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 534 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |