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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 // Cancels any blocked request for the specified route id. | 179 // Cancels any blocked request for the specified route id. |
180 void CancelBlockedRequestsForRoute(int child_id, int route_id); | 180 void CancelBlockedRequestsForRoute(int child_id, int route_id); |
181 | 181 |
182 // Maintains a collection of temp files created in support of | 182 // Maintains a collection of temp files created in support of |
183 // the download_to_file capability. Used to grant access to the | 183 // the download_to_file capability. Used to grant access to the |
184 // child process and to defer deletion of the file until it's | 184 // child process and to defer deletion of the file until it's |
185 // no longer needed. | 185 // no longer needed. |
186 void RegisterDownloadedTempFile( | 186 void RegisterDownloadedTempFile( |
187 int child_id, int request_id, | 187 int child_id, int request_id, |
188 webkit_blob::ShareableFileReference* reference); | 188 const base::FilePath& file_path); |
189 void UnregisterDownloadedTempFile(int child_id, int request_id); | 189 void UnregisterDownloadedTempFile(int child_id, int request_id); |
190 | 190 |
191 // Needed for the sync IPC message dispatcher macros. | 191 // Needed for the sync IPC message dispatcher macros. |
192 bool Send(IPC::Message* message); | 192 bool Send(IPC::Message* message); |
193 | 193 |
194 // Indicates whether third-party sub-content can pop-up HTTP basic auth | 194 // Indicates whether third-party sub-content can pop-up HTTP basic auth |
195 // dialog boxes. | 195 // dialog boxes. |
196 bool allow_cross_origin_auth_prompt(); | 196 bool allow_cross_origin_auth_prompt(); |
197 | 197 |
198 ResourceDispatcherHostDelegate* delegate() { | 198 ResourceDispatcherHostDelegate* delegate() { |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap; | 512 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap; |
513 | 513 |
514 OfflineMap offline_policy_map_; | 514 OfflineMap offline_policy_map_; |
515 | 515 |
516 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 516 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
517 }; | 517 }; |
518 | 518 |
519 } // namespace content | 519 } // namespace content |
520 | 520 |
521 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 521 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |