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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 ResourceMessageFilter* filter); | 137 ResourceMessageFilter* filter); |
138 | 138 |
139 // Cancels the given request if it still exists. | 139 // Cancels the given request if it still exists. |
140 void CancelRequest(int child_id, int request_id); | 140 void CancelRequest(int child_id, int request_id); |
141 | 141 |
142 // Marks the request, with its current |response|, as "parked". This | 142 // Marks the request, with its current |response|, as "parked". This |
143 // happens if a request is redirected cross-site and needs to be | 143 // happens if a request is redirected cross-site and needs to be |
144 // resumed by a new process. | 144 // resumed by a new process. |
145 void MarkAsTransferredNavigation( | 145 void MarkAsTransferredNavigation( |
146 const GlobalRequestID& id, | 146 const GlobalRequestID& id, |
147 const scoped_refptr<ResourceResponse>& response); | 147 const base::Closure& on_transfer_complete_callback); |
148 | 148 |
149 // Cancels a request previously marked as being transferred, for use when a | 149 // Cancels a request previously marked as being transferred, for use when a |
150 // navigation was cancelled. | 150 // navigation was cancelled. |
151 void CancelTransferringNavigation(const GlobalRequestID& id); | 151 void CancelTransferringNavigation(const GlobalRequestID& id); |
152 | 152 |
153 // Resumes the request without transferring it to a new process. | 153 // Resumes the request without transferring it to a new process. |
154 void ResumeDeferredNavigation(const GlobalRequestID& id); | 154 void ResumeDeferredNavigation(const GlobalRequestID& id); |
155 | 155 |
156 // Returns the number of pending requests. This is designed for the unittests | 156 // Returns the number of pending requests. This is designed for the unittests |
157 int pending_requests() const { | 157 int pending_requests() const { |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 | 725 |
726 // Points to the registered download handler intercept. | 726 // Points to the registered download handler intercept. |
727 CreateDownloadHandlerIntercept create_download_handler_intercept_; | 727 CreateDownloadHandlerIntercept create_download_handler_intercept_; |
728 | 728 |
729 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 729 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
730 }; | 730 }; |
731 | 731 |
732 } // namespace content | 732 } // namespace content |
733 | 733 |
734 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 734 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |