OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
228 // child process and to defer deletion of the file until it's | 228 // child process and to defer deletion of the file until it's |
229 // no longer needed. | 229 // no longer needed. |
230 void RegisterDownloadedTempFile( | 230 void RegisterDownloadedTempFile( |
231 int child_id, int request_id, | 231 int child_id, int request_id, |
232 webkit_blob::DeletableFileReference* reference); | 232 webkit_blob::DeletableFileReference* reference); |
233 void UnregisterDownloadedTempFile(int child_id, int request_id); | 233 void UnregisterDownloadedTempFile(int child_id, int request_id); |
234 | 234 |
235 // Needed for the sync IPC message dispatcher macros. | 235 // Needed for the sync IPC message dispatcher macros. |
236 bool Send(IPC::Message* message); | 236 bool Send(IPC::Message* message); |
237 | 237 |
238 // Returns true if we should force the given resource to be downloaded. | |
239 bool ShouldForceDownloadResource( | |
jam
2011/06/08 00:18:17
how about just exposing delegate_? then we don't
Matt Perry
2011/06/08 00:33:37
Done.
| |
240 const GURL& url, const std::string& mime_type); | |
241 | |
238 // Controls if we launch or squash prefetch requests as they arrive | 242 // Controls if we launch or squash prefetch requests as they arrive |
239 // from renderers. | 243 // from renderers. |
240 static bool is_prefetch_enabled(); | 244 static bool is_prefetch_enabled(); |
241 static void set_is_prefetch_enabled(bool value); | 245 static void set_is_prefetch_enabled(bool value); |
242 | 246 |
243 // Controls whether third-party sub-content can pop-up HTTP basic auth | 247 // Controls whether third-party sub-content can pop-up HTTP basic auth |
244 // dialog boxes. | 248 // dialog boxes. |
245 bool allow_cross_origin_auth_prompt(); | 249 bool allow_cross_origin_auth_prompt(); |
246 void set_allow_cross_origin_auth_prompt(bool value); | 250 void set_allow_cross_origin_auth_prompt(bool value); |
247 | 251 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
490 | 494 |
491 ResourceDispatcherHostDelegate* delegate_; | 495 ResourceDispatcherHostDelegate* delegate_; |
492 | 496 |
493 static bool is_prefetch_enabled_; | 497 static bool is_prefetch_enabled_; |
494 bool allow_cross_origin_auth_prompt_; | 498 bool allow_cross_origin_auth_prompt_; |
495 | 499 |
496 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 500 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
497 }; | 501 }; |
498 | 502 |
499 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 503 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |