Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2321543002: Merge CrossSiteResourceHandler and NavigationResourceThrottle (Closed)
Patch Set: Fixed test compilation error Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ResourceMessageFilter* filter); 138 ResourceMessageFilter* filter);
139 139
140 // Cancels the given request if it still exists. 140 // Cancels the given request if it still exists.
141 void CancelRequest(int child_id, int request_id); 141 void CancelRequest(int child_id, int request_id);
142 142
143 // Marks the request, with its current |response|, as "parked". This 143 // Marks the request, with its current |response|, as "parked". This
144 // happens if a request is redirected cross-site and needs to be 144 // happens if a request is redirected cross-site and needs to be
145 // resumed by a new process. 145 // resumed by a new process.
146 void MarkAsTransferredNavigation( 146 void MarkAsTransferredNavigation(
147 const GlobalRequestID& id, 147 const GlobalRequestID& id,
148 const scoped_refptr<ResourceResponse>& response); 148 const base::Closure& on_transfer_complete_callback);
149 149
150 // Cancels a request previously marked as being transferred, for use when a 150 // Cancels a request previously marked as being transferred, for use when a
151 // navigation was cancelled. 151 // navigation was cancelled.
152 void CancelTransferringNavigation(const GlobalRequestID& id); 152 void CancelTransferringNavigation(const GlobalRequestID& id);
153 153
154 // Resumes the request without transferring it to a new process. 154 // Resumes the request without transferring it to a new process.
155 void ResumeDeferredNavigation(const GlobalRequestID& id); 155 void ResumeDeferredNavigation(const GlobalRequestID& id);
156 156
157 // Returns the number of pending requests. This is designed for the unittests 157 // Returns the number of pending requests. This is designed for the unittests
158 int pending_requests() const { 158 int pending_requests() const {
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 740
741 // Points to the registered download handler intercept. 741 // Points to the registered download handler intercept.
742 CreateDownloadHandlerIntercept create_download_handler_intercept_; 742 CreateDownloadHandlerIntercept create_download_handler_intercept_;
743 743
744 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 744 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
745 }; 745 };
746 746
747 } // namespace content 747 } // namespace content
748 748
749 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 749 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698