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 27 matching lines...) Expand all Loading... |
38 class ResourceDispatcherHostRequestInfo; | 38 class ResourceDispatcherHostRequestInfo; |
39 class ResourceHandler; | 39 class ResourceHandler; |
40 class ResourceMessageFilter; | 40 class ResourceMessageFilter; |
41 class SafeBrowsingService; | 41 class SafeBrowsingService; |
42 class SaveFileManager; | 42 class SaveFileManager; |
43 class SSLClientAuthHandler; | 43 class SSLClientAuthHandler; |
44 class UserScriptListener; | 44 class UserScriptListener; |
45 class WebKitThread; | 45 class WebKitThread; |
46 struct DownloadSaveInfo; | 46 struct DownloadSaveInfo; |
47 struct GlobalRequestID; | 47 struct GlobalRequestID; |
48 struct ViewHostMsg_Resource_Request; | 48 struct ResourceHostMsg_Request; |
49 struct ViewMsg_ClosePage_Params; | 49 struct ViewMsg_ClosePage_Params; |
50 | 50 |
51 namespace net { | 51 namespace net { |
52 class URLRequestContext; | 52 class URLRequestContext; |
53 } // namespace net | 53 } // namespace net |
54 | 54 |
55 namespace webkit_blob { | 55 namespace webkit_blob { |
56 class DeletableFileReference; | 56 class DeletableFileReference; |
57 } | 57 } |
58 | 58 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 bool MaybeUpdateUploadProgress(ResourceDispatcherHostRequestInfo *info, | 377 bool MaybeUpdateUploadProgress(ResourceDispatcherHostRequestInfo *info, |
378 net::URLRequest *request); | 378 net::URLRequest *request); |
379 | 379 |
380 // Resumes or cancels (if |cancel_requests| is true) any blocked requests. | 380 // Resumes or cancels (if |cancel_requests| is true) any blocked requests. |
381 void ProcessBlockedRequestsForRoute(int process_unique_id, | 381 void ProcessBlockedRequestsForRoute(int process_unique_id, |
382 int route_id, | 382 int route_id, |
383 bool cancel_requests); | 383 bool cancel_requests); |
384 | 384 |
385 void OnRequestResource(const IPC::Message& msg, | 385 void OnRequestResource(const IPC::Message& msg, |
386 int request_id, | 386 int request_id, |
387 const ViewHostMsg_Resource_Request& request_data); | 387 const ResourceHostMsg_Request& request_data); |
388 void OnSyncLoad(int request_id, | 388 void OnSyncLoad(int request_id, |
389 const ViewHostMsg_Resource_Request& request_data, | 389 const ResourceHostMsg_Request& request_data, |
390 IPC::Message* sync_result); | 390 IPC::Message* sync_result); |
391 void BeginRequest(int request_id, | 391 void BeginRequest(int request_id, |
392 const ViewHostMsg_Resource_Request& request_data, | 392 const ResourceHostMsg_Request& request_data, |
393 IPC::Message* sync_result, // only valid for sync | 393 IPC::Message* sync_result, // only valid for sync |
394 int route_id); // only valid for async | 394 int route_id); // only valid for async |
395 void OnDataReceivedACK(int request_id); | 395 void OnDataReceivedACK(int request_id); |
396 void OnDataDownloadedACK(int request_id); | 396 void OnDataDownloadedACK(int request_id); |
397 void OnUploadProgressACK(int request_id); | 397 void OnUploadProgressACK(int request_id); |
398 void OnCancelRequest(int request_id); | 398 void OnCancelRequest(int request_id); |
399 void OnFollowRedirect(int request_id, | 399 void OnFollowRedirect(int request_id, |
400 bool has_new_first_party_for_cookies, | 400 bool has_new_first_party_for_cookies, |
401 const GURL& new_first_party_for_cookies); | 401 const GURL& new_first_party_for_cookies); |
402 void OnReleaseDownloadedFile(int request_id); | 402 void OnReleaseDownloadedFile(int request_id); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 // Used during IPC message dispatching so that the handlers can get a pointer | 500 // Used during IPC message dispatching so that the handlers can get a pointer |
501 // to the source of the message. | 501 // to the source of the message. |
502 ResourceMessageFilter* filter_; | 502 ResourceMessageFilter* filter_; |
503 | 503 |
504 static bool is_prefetch_enabled_; | 504 static bool is_prefetch_enabled_; |
505 | 505 |
506 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 506 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
507 }; | 507 }; |
508 | 508 |
509 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 509 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |