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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 | 342 |
343 // ResourceLoaderDelegate implementation: | 343 // ResourceLoaderDelegate implementation: |
344 ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 344 ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
345 ResourceLoader* loader, | 345 ResourceLoader* loader, |
346 net::AuthChallengeInfo* auth_info) override; | 346 net::AuthChallengeInfo* auth_info) override; |
347 bool HandleExternalProtocol(ResourceLoader* loader, const GURL& url) override; | 347 bool HandleExternalProtocol(ResourceLoader* loader, const GURL& url) override; |
348 void DidStartRequest(ResourceLoader* loader) override; | 348 void DidStartRequest(ResourceLoader* loader) override; |
349 void DidReceiveRedirect(ResourceLoader* loader, const GURL& new_url) override; | 349 void DidReceiveRedirect(ResourceLoader* loader, const GURL& new_url) override; |
350 void DidReceiveResponse(ResourceLoader* loader) override; | 350 void DidReceiveResponse(ResourceLoader* loader) override; |
351 void DidFinishLoading(ResourceLoader* loader) override; | 351 void DidFinishLoading(ResourceLoader* loader) override; |
| 352 std::unique_ptr<net::ClientCertStore> CreateClientCertStore( |
| 353 ResourceLoader* loader) override; |
352 | 354 |
353 // An init helper that runs on the IO thread. | 355 // An init helper that runs on the IO thread. |
354 void OnInit(); | 356 void OnInit(); |
355 | 357 |
356 // A shutdown helper that runs on the IO thread. | 358 // A shutdown helper that runs on the IO thread. |
357 void OnShutdown(); | 359 void OnShutdown(); |
358 | 360 |
359 void OnRenderFrameDeleted(const GlobalFrameRoutingId& global_routing_id); | 361 void OnRenderFrameDeleted(const GlobalFrameRoutingId& global_routing_id); |
360 | 362 |
361 // Helper function for regular and download requests. | 363 // Helper function for regular and download requests. |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 // Allows tests to use a mock CertStore. If set, the CertStore must | 648 // Allows tests to use a mock CertStore. If set, the CertStore must |
647 // outlive this ResourceDispatcherHostImpl. | 649 // outlive this ResourceDispatcherHostImpl. |
648 CertStore* cert_store_for_testing_; | 650 CertStore* cert_store_for_testing_; |
649 | 651 |
650 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 652 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
651 }; | 653 }; |
652 | 654 |
653 } // namespace content | 655 } // namespace content |
654 | 656 |
655 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 657 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |