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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 // Returns true if the message was a resource message that was processed. | 149 // Returns true if the message was a resource message that was processed. |
150 bool OnMessageReceived(const IPC::Message& message, | 150 bool OnMessageReceived(const IPC::Message& message, |
151 ResourceMessageFilter* filter); | 151 ResourceMessageFilter* filter); |
152 | 152 |
153 DownloadInterruptReason BeginDownload( | 153 DownloadInterruptReason BeginDownload( |
154 std::unique_ptr<net::URLRequest> request, | 154 std::unique_ptr<net::URLRequest> request, |
155 const Referrer& referrer, | 155 const Referrer& referrer, |
156 bool is_content_initiated, | 156 bool is_content_initiated, |
157 ResourceContext* context, | 157 ResourceContext* context, |
158 int child_id, | 158 int render_process_id, |
159 int render_view_route_id, | 159 int render_view_route_id, |
160 int render_frame_route_id, | 160 int render_frame_route_id, |
161 bool do_not_prompt_for_login); | 161 bool do_not_prompt_for_login); |
162 | 162 |
163 // Initiates a save file from the browser process (as opposed to a resource | 163 // Initiates a save file from the browser process (as opposed to a resource |
164 // request from the renderer or another child process). | 164 // request from the renderer or another child process). |
165 void BeginSaveFile(const GURL& url, | 165 void BeginSaveFile(const GURL& url, |
166 const Referrer& referrer, | 166 const Referrer& referrer, |
167 SaveItemId save_item_id, | 167 SaveItemId save_item_id, |
168 SavePackageId save_package_id, | 168 SavePackageId save_package_id, |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 // Allows tests to use a mock CertStore. If set, the CertStore must | 662 // Allows tests to use a mock CertStore. If set, the CertStore must |
663 // outlive this ResourceDispatcherHostImpl. | 663 // outlive this ResourceDispatcherHostImpl. |
664 CertStore* cert_store_for_testing_; | 664 CertStore* cert_store_for_testing_; |
665 | 665 |
666 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 666 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
667 }; | 667 }; |
668 | 668 |
669 } // namespace content | 669 } // namespace content |
670 | 670 |
671 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 671 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |