| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 | 597 |
| 598 int BuildLoadFlagsForRequest(const ResourceRequest& request_data, | 598 int BuildLoadFlagsForRequest(const ResourceRequest& request_data, |
| 599 int child_id, | 599 int child_id, |
| 600 bool is_sync_load); | 600 bool is_sync_load); |
| 601 | 601 |
| 602 // The certificate on a ResourceResponse is associated with a | 602 // The certificate on a ResourceResponse is associated with a |
| 603 // particular renderer process. As a transfer to a new process | 603 // particular renderer process. As a transfer to a new process |
| 604 // completes, the stored certificate has to be updated to reflect the | 604 // completes, the stored certificate has to be updated to reflect the |
| 605 // new renderer process. | 605 // new renderer process. |
| 606 void UpdateResponseCertificateForTransfer(ResourceResponse* response, | 606 void UpdateResponseCertificateForTransfer(ResourceResponse* response, |
| 607 const net::SSLInfo& ssl_info, | 607 net::URLRequest* request, |
| 608 int child_id); | 608 ResourceRequestInfoImpl* info); |
| 609 | 609 |
| 610 CertStore* GetCertStore(); | 610 CertStore* GetCertStore(); |
| 611 | 611 |
| 612 // Consults the RendererSecurity policy to determine whether the | 612 // Consults the RendererSecurity policy to determine whether the |
| 613 // ResourceDispatcherHostImpl should service this request. A request might | 613 // ResourceDispatcherHostImpl should service this request. A request might |
| 614 // be disallowed if the renderer is not authorized to retrieve the request | 614 // be disallowed if the renderer is not authorized to retrieve the request |
| 615 // URL or if the renderer is attempting to upload an unauthorized file. | 615 // URL or if the renderer is attempting to upload an unauthorized file. |
| 616 bool ShouldServiceRequest(int process_type, | 616 bool ShouldServiceRequest(int process_type, |
| 617 int child_id, | 617 int child_id, |
| 618 const ResourceRequest& request_data, | 618 const ResourceRequest& request_data, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 | 716 |
| 717 // Used to invoke an interceptor for the HTTP header. | 717 // Used to invoke an interceptor for the HTTP header. |
| 718 HeaderInterceptorMap http_header_interceptor_map_; | 718 HeaderInterceptorMap http_header_interceptor_map_; |
| 719 | 719 |
| 720 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 720 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
| 721 }; | 721 }; |
| 722 | 722 |
| 723 } // namespace content | 723 } // namespace content |
| 724 | 724 |
| 725 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 725 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
| OLD | NEW |