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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 564 |
565 int BuildLoadFlagsForRequest(const ResourceRequest& request_data, | 565 int BuildLoadFlagsForRequest(const ResourceRequest& request_data, |
566 int child_id, | 566 int child_id, |
567 bool is_sync_load); | 567 bool is_sync_load); |
568 | 568 |
569 // The certificate on a ResourceResponse is associated with a | 569 // The certificate on a ResourceResponse is associated with a |
570 // particular renderer process. As a transfer to a new process | 570 // particular renderer process. As a transfer to a new process |
571 // completes, the stored certificate has to be updated to reflect the | 571 // completes, the stored certificate has to be updated to reflect the |
572 // new renderer process. | 572 // new renderer process. |
573 void UpdateResponseCertificateForTransfer(ResourceResponse* response, | 573 void UpdateResponseCertificateForTransfer(ResourceResponse* response, |
574 const net::SSLInfo& ssl_info, | 574 net::URLRequest* request, |
575 int child_id); | 575 ResourceRequestInfoImpl* info); |
576 | 576 |
577 CertStore* GetCertStore(); | 577 CertStore* GetCertStore(); |
578 | 578 |
579 // Consults the RendererSecurity policy to determine whether the | 579 // Consults the RendererSecurity policy to determine whether the |
580 // ResourceDispatcherHostImpl should service this request. A request might | 580 // ResourceDispatcherHostImpl should service this request. A request might |
581 // be disallowed if the renderer is not authorized to retrieve the request | 581 // be disallowed if the renderer is not authorized to retrieve the request |
582 // URL or if the renderer is attempting to upload an unauthorized file. | 582 // URL or if the renderer is attempting to upload an unauthorized file. |
583 bool ShouldServiceRequest(int process_type, | 583 bool ShouldServiceRequest(int process_type, |
584 int child_id, | 584 int child_id, |
585 const ResourceRequest& request_data, | 585 const ResourceRequest& request_data, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 | 683 |
684 // Used to invoke an interceptor for the HTTP header. | 684 // Used to invoke an interceptor for the HTTP header. |
685 HeaderInterceptorMap http_header_interceptor_map_; | 685 HeaderInterceptorMap http_header_interceptor_map_; |
686 | 686 |
687 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 687 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
688 }; | 688 }; |
689 | 689 |
690 } // namespace content | 690 } // namespace content |
691 | 691 |
692 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 692 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |