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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 virtual void OnReceivedRedirect(net::URLRequest* request, | 181 virtual void OnReceivedRedirect(net::URLRequest* request, |
182 const GURL& new_url, | 182 const GURL& new_url, |
183 bool* defer_redirect) OVERRIDE; | 183 bool* defer_redirect) OVERRIDE; |
184 virtual void OnAuthRequired(net::URLRequest* request, | 184 virtual void OnAuthRequired(net::URLRequest* request, |
185 net::AuthChallengeInfo* auth_info) OVERRIDE; | 185 net::AuthChallengeInfo* auth_info) OVERRIDE; |
186 virtual void OnCertificateRequested( | 186 virtual void OnCertificateRequested( |
187 net::URLRequest* request, | 187 net::URLRequest* request, |
188 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; | 188 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; |
189 virtual void OnSSLCertificateError(net::URLRequest* request, | 189 virtual void OnSSLCertificateError(net::URLRequest* request, |
190 const net::SSLInfo& ssl_info, | 190 const net::SSLInfo& ssl_info, |
191 bool is_hsts_host) OVERRIDE; | 191 bool fatal) OVERRIDE; |
192 virtual bool CanGetCookies(const net::URLRequest* request, | 192 virtual bool CanGetCookies(const net::URLRequest* request, |
193 const net::CookieList& cookie_list) const OVERRIDE; | 193 const net::CookieList& cookie_list) const OVERRIDE; |
194 virtual bool CanSetCookie(const net::URLRequest* request, | 194 virtual bool CanSetCookie(const net::URLRequest* request, |
195 const std::string& cookie_line, | 195 const std::string& cookie_line, |
196 net::CookieOptions* options) const OVERRIDE; | 196 net::CookieOptions* options) const OVERRIDE; |
197 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; | 197 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; |
198 virtual void OnReadCompleted(net::URLRequest* request, | 198 virtual void OnReadCompleted(net::URLRequest* request, |
199 int bytes_read) OVERRIDE; | 199 int bytes_read) OVERRIDE; |
200 | 200 |
201 void OnResponseCompleted(net::URLRequest* request); | 201 void OnResponseCompleted(net::URLRequest* request); |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // Maps the request ID of request that is being transferred to a new RVH | 527 // Maps the request ID of request that is being transferred to a new RVH |
528 // to the respective request. | 528 // to the respective request. |
529 typedef std::map<content::GlobalRequestID, net::URLRequest*> | 529 typedef std::map<content::GlobalRequestID, net::URLRequest*> |
530 TransferredNavigations; | 530 TransferredNavigations; |
531 TransferredNavigations transferred_navigations_; | 531 TransferredNavigations transferred_navigations_; |
532 | 532 |
533 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 533 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
534 }; | 534 }; |
535 | 535 |
536 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 536 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |