| 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 typedef std::map<std::string, HeaderInterceptorInfo> HeaderInterceptorMap; | 413 typedef std::map<std::string, HeaderInterceptorInfo> HeaderInterceptorMap; |
| 414 | 414 |
| 415 // ResourceLoaderDelegate implementation: | 415 // ResourceLoaderDelegate implementation: |
| 416 ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 416 ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
| 417 ResourceLoader* loader, | 417 ResourceLoader* loader, |
| 418 net::AuthChallengeInfo* auth_info) override; | 418 net::AuthChallengeInfo* auth_info) override; |
| 419 bool HandleExternalProtocol(ResourceLoader* loader, const GURL& url) override; | 419 bool HandleExternalProtocol(ResourceLoader* loader, const GURL& url) override; |
| 420 void DidStartRequest(ResourceLoader* loader) override; | 420 void DidStartRequest(ResourceLoader* loader) override; |
| 421 void DidReceiveRedirect(ResourceLoader* loader, const GURL& new_url, | 421 void DidReceiveRedirect(ResourceLoader* loader, const GURL& new_url, |
| 422 ResourceResponse* response) override; | 422 ResourceResponse* response) override; |
| 423 void DidReceiveResponse(ResourceLoader* loader) override; | 423 void DidReceiveResponse(ResourceLoader* loader, |
| 424 ResourceResponse* response) override; |
| 424 void DidFinishLoading(ResourceLoader* loader) override; | 425 void DidFinishLoading(ResourceLoader* loader) override; |
| 425 std::unique_ptr<net::ClientCertStore> CreateClientCertStore( | 426 std::unique_ptr<net::ClientCertStore> CreateClientCertStore( |
| 426 ResourceLoader* loader) override; | 427 ResourceLoader* loader) override; |
| 427 | 428 |
| 428 // An init helper that runs on the IO thread. | 429 // An init helper that runs on the IO thread. |
| 429 void OnInit(); | 430 void OnInit(); |
| 430 | 431 |
| 431 // A shutdown helper that runs on the IO thread. | 432 // A shutdown helper that runs on the IO thread. |
| 432 void OnShutdown(); | 433 void OnShutdown(); |
| 433 | 434 |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 | 786 |
| 786 // Points to the registered download handler intercept. | 787 // Points to the registered download handler intercept. |
| 787 CreateDownloadHandlerIntercept create_download_handler_intercept_; | 788 CreateDownloadHandlerIntercept create_download_handler_intercept_; |
| 788 | 789 |
| 789 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 790 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
| 790 }; | 791 }; |
| 791 | 792 |
| 792 } // namespace content | 793 } // namespace content |
| 793 | 794 |
| 794 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 795 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
| OLD | NEW |