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