| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 int num_requests; | 249 int num_requests; |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 friend class ShutdownTask; | 252 friend class ShutdownTask; |
| 253 friend class ResourceMessageDelegate; | 253 friend class ResourceMessageDelegate; |
| 254 | 254 |
| 255 // ResourceLoaderDelegate implementation: | 255 // ResourceLoaderDelegate implementation: |
| 256 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 256 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
| 257 ResourceLoader* loader, | 257 ResourceLoader* loader, |
| 258 net::AuthChallengeInfo* auth_info) OVERRIDE; | 258 net::AuthChallengeInfo* auth_info) OVERRIDE; |
| 259 virtual bool AcceptAuthRequest( | |
| 260 ResourceLoader* loader, | |
| 261 net::AuthChallengeInfo* auth_info) OVERRIDE; | |
| 262 virtual bool AcceptSSLClientCertificateRequest( | |
| 263 ResourceLoader* loader, | |
| 264 net::SSLCertRequestInfo* cert_info) OVERRIDE; | |
| 265 virtual bool HandleExternalProtocol(ResourceLoader* loader, | 259 virtual bool HandleExternalProtocol(ResourceLoader* loader, |
| 266 const GURL& url) OVERRIDE; | 260 const GURL& url) OVERRIDE; |
| 267 virtual void DidStartRequest(ResourceLoader* loader) OVERRIDE; | 261 virtual void DidStartRequest(ResourceLoader* loader) OVERRIDE; |
| 268 virtual void DidReceiveRedirect(ResourceLoader* loader, | 262 virtual void DidReceiveRedirect(ResourceLoader* loader, |
| 269 const GURL& new_url) OVERRIDE; | 263 const GURL& new_url) OVERRIDE; |
| 270 virtual void DidReceiveResponse(ResourceLoader* loader) OVERRIDE; | 264 virtual void DidReceiveResponse(ResourceLoader* loader) OVERRIDE; |
| 271 virtual void DidFinishLoading(ResourceLoader* loader) OVERRIDE; | 265 virtual void DidFinishLoading(ResourceLoader* loader) OVERRIDE; |
| 272 | 266 |
| 273 // An init helper that runs on the IO thread. | 267 // An init helper that runs on the IO thread. |
| 274 void OnInit(); | 268 void OnInit(); |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap; | 506 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap; |
| 513 | 507 |
| 514 OfflineMap offline_policy_map_; | 508 OfflineMap offline_policy_map_; |
| 515 | 509 |
| 516 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 510 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
| 517 }; | 511 }; |
| 518 | 512 |
| 519 } // namespace content | 513 } // namespace content |
| 520 | 514 |
| 521 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 515 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
| OLD | NEW |