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 26 matching lines...) Expand all Loading... |
37 class ResourceDispatcherHostRequestInfo; | 37 class ResourceDispatcherHostRequestInfo; |
38 class ResourceHandler; | 38 class ResourceHandler; |
39 class ResourceMessageFilter; | 39 class ResourceMessageFilter; |
40 class SafeBrowsingService; | 40 class SafeBrowsingService; |
41 class SaveFileManager; | 41 class SaveFileManager; |
42 class SSLClientAuthHandler; | 42 class SSLClientAuthHandler; |
43 class WebKitThread; | 43 class WebKitThread; |
44 struct DownloadSaveInfo; | 44 struct DownloadSaveInfo; |
45 struct GlobalRequestID; | 45 struct GlobalRequestID; |
46 struct ResourceHostMsg_Request; | 46 struct ResourceHostMsg_Request; |
47 struct ViewMsg_ClosePage_Params; | 47 struct ViewMsg_SwapOut_Params; |
48 | 48 |
49 namespace content { | 49 namespace content { |
50 class ResourceContext; | 50 class ResourceContext; |
51 } | 51 } |
52 | 52 |
53 namespace webkit_blob { | 53 namespace webkit_blob { |
54 class DeletableFileReference; | 54 class DeletableFileReference; |
55 } | 55 } |
56 | 56 |
57 class ResourceDispatcherHost : public net::URLRequest::Delegate { | 57 class ResourceDispatcherHost : public net::URLRequest::Delegate { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 } | 150 } |
151 | 151 |
152 SafeBrowsingService* safe_browsing_service() const { | 152 SafeBrowsingService* safe_browsing_service() const { |
153 return safe_browsing_; | 153 return safe_browsing_; |
154 } | 154 } |
155 | 155 |
156 WebKitThread* webkit_thread() const { | 156 WebKitThread* webkit_thread() const { |
157 return webkit_thread_.get(); | 157 return webkit_thread_.get(); |
158 } | 158 } |
159 | 159 |
160 // Called when the onunload handler for a cross-site request has finished. | 160 // Called when the unload handler for a cross-site request has finished. |
161 void OnClosePageACK(const ViewMsg_ClosePage_Params& params); | 161 void OnSwapOutACK(const ViewMsg_SwapOut_Params& params); |
162 | 162 |
163 // Force cancels any pending requests for the given process. | 163 // Force cancels any pending requests for the given process. |
164 void CancelRequestsForProcess(int process_unique_id); | 164 void CancelRequestsForProcess(int process_unique_id); |
165 | 165 |
166 // Force cancels any pending requests for the given route id. This method | 166 // Force cancels any pending requests for the given route id. This method |
167 // acts like CancelRequestsForProcess when route_id is -1. | 167 // acts like CancelRequestsForProcess when route_id is -1. |
168 void CancelRequestsForRoute(int process_unique_id, int route_id); | 168 void CancelRequestsForRoute(int process_unique_id, int route_id); |
169 | 169 |
170 // net::URLRequest::Delegate | 170 // net::URLRequest::Delegate |
171 virtual void OnReceivedRedirect(net::URLRequest* request, | 171 virtual void OnReceivedRedirect(net::URLRequest* request, |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 ResourceMessageFilter* filter_; | 483 ResourceMessageFilter* filter_; |
484 | 484 |
485 static bool is_prefetch_enabled_; | 485 static bool is_prefetch_enabled_; |
486 PrerenderChildRouteIdPairs prerender_child_route_pairs_; | 486 PrerenderChildRouteIdPairs prerender_child_route_pairs_; |
487 | 487 |
488 | 488 |
489 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 489 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
490 }; | 490 }; |
491 | 491 |
492 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 492 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |