| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 const GURL& new_url, | 177 const GURL& new_url, |
| 178 bool* defer_redirect) OVERRIDE; | 178 bool* defer_redirect) OVERRIDE; |
| 179 virtual void OnAuthRequired(net::URLRequest* request, | 179 virtual void OnAuthRequired(net::URLRequest* request, |
| 180 net::AuthChallengeInfo* auth_info) OVERRIDE; | 180 net::AuthChallengeInfo* auth_info) OVERRIDE; |
| 181 virtual void OnCertificateRequested( | 181 virtual void OnCertificateRequested( |
| 182 net::URLRequest* request, | 182 net::URLRequest* request, |
| 183 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; | 183 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; |
| 184 virtual void OnSSLCertificateError(net::URLRequest* request, | 184 virtual void OnSSLCertificateError(net::URLRequest* request, |
| 185 const net::SSLInfo& ssl_info, | 185 const net::SSLInfo& ssl_info, |
| 186 bool fatal) OVERRIDE; | 186 bool fatal) OVERRIDE; |
| 187 virtual bool CanGetCookies(const net::URLRequest* request, | |
| 188 const net::CookieList& cookie_list) const OVERRIDE; | |
| 189 virtual bool CanSetCookie(const net::URLRequest* request, | |
| 190 const std::string& cookie_line, | |
| 191 net::CookieOptions* options) const OVERRIDE; | |
| 192 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; | 187 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; |
| 193 virtual void OnReadCompleted(net::URLRequest* request, | 188 virtual void OnReadCompleted(net::URLRequest* request, |
| 194 int bytes_read) OVERRIDE; | 189 int bytes_read) OVERRIDE; |
| 195 | 190 |
| 196 void OnUserGesture(TabContents* tab); | 191 void OnUserGesture(TabContents* tab); |
| 197 | 192 |
| 198 // Helper functions to get the dispatcher's request info for the request. | 193 // Helper functions to get the dispatcher's request info for the request. |
| 199 // If the dispatcher didn't create the request then NULL is returned. | 194 // If the dispatcher didn't create the request then NULL is returned. |
| 200 static ResourceDispatcherHostRequestInfo* InfoForRequest( | 195 static ResourceDispatcherHostRequestInfo* InfoForRequest( |
| 201 net::URLRequest* request); | 196 net::URLRequest* request); |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 // Maps the request ID of request that is being transferred to a new RVH | 518 // Maps the request ID of request that is being transferred to a new RVH |
| 524 // to the respective request. | 519 // to the respective request. |
| 525 typedef std::map<content::GlobalRequestID, net::URLRequest*> | 520 typedef std::map<content::GlobalRequestID, net::URLRequest*> |
| 526 TransferredNavigations; | 521 TransferredNavigations; |
| 527 TransferredNavigations transferred_navigations_; | 522 TransferredNavigations transferred_navigations_; |
| 528 | 523 |
| 529 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 524 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
| 530 }; | 525 }; |
| 531 | 526 |
| 532 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 527 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
| OLD | NEW |