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