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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 int process_unique_id, | 84 int process_unique_id, |
85 int route_id, | 85 int route_id, |
86 const content::ResourceContext& context); | 86 const content::ResourceContext& context); |
87 | 87 |
88 // Initiates a save file from the browser process (as opposed to a resource | 88 // Initiates a save file from the browser process (as opposed to a resource |
89 // request from the renderer or another child process). | 89 // request from the renderer or another child process). |
90 void BeginSaveFile(const GURL& url, | 90 void BeginSaveFile(const GURL& url, |
91 const GURL& referrer, | 91 const GURL& referrer, |
92 int process_unique_id, | 92 int process_unique_id, |
93 int route_id, | 93 int route_id, |
| 94 const FilePath& default_download_dir, |
94 const content::ResourceContext& context); | 95 const content::ResourceContext& context); |
95 | 96 |
96 // Cancels the given request if it still exists. We ignore cancels from the | 97 // Cancels the given request if it still exists. We ignore cancels from the |
97 // renderer in the event of a download. | 98 // renderer in the event of a download. |
98 void CancelRequest(int process_unique_id, | 99 void CancelRequest(int process_unique_id, |
99 int request_id, | 100 int request_id, |
100 bool from_renderer); | 101 bool from_renderer); |
101 | 102 |
102 // Follows a deferred redirect for the given request. | 103 // Follows a deferred redirect for the given request. |
103 // new_first_party_for_cookies, if non-empty, is the new cookie policy URL | 104 // new_first_party_for_cookies, if non-empty, is the new cookie policy URL |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 494 |
494 ResourceDispatcherHostDelegate* delegate_; | 495 ResourceDispatcherHostDelegate* delegate_; |
495 | 496 |
496 static bool is_prefetch_enabled_; | 497 static bool is_prefetch_enabled_; |
497 bool allow_cross_origin_auth_prompt_; | 498 bool allow_cross_origin_auth_prompt_; |
498 | 499 |
499 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 500 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
500 }; | 501 }; |
501 | 502 |
502 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 503 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |