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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 const ResourceHostMsg_Request& request_data, | 388 const ResourceHostMsg_Request& request_data, |
389 IPC::Message* sync_result); | 389 IPC::Message* sync_result); |
390 void BeginRequest(int request_id, | 390 void BeginRequest(int request_id, |
391 const ResourceHostMsg_Request& request_data, | 391 const ResourceHostMsg_Request& request_data, |
392 IPC::Message* sync_result, // only valid for sync | 392 IPC::Message* sync_result, // only valid for sync |
393 int route_id); // only valid for async | 393 int route_id); // only valid for async |
394 void OnDataReceivedACK(int request_id); | 394 void OnDataReceivedACK(int request_id); |
395 void OnDataDownloadedACK(int request_id); | 395 void OnDataDownloadedACK(int request_id); |
396 void OnUploadProgressACK(int request_id); | 396 void OnUploadProgressACK(int request_id); |
397 void OnCancelRequest(int request_id); | 397 void OnCancelRequest(int request_id); |
| 398 void OnTransferRequestToNewPage(int new_routing_id, int request_id); |
398 void OnFollowRedirect(int request_id, | 399 void OnFollowRedirect(int request_id, |
399 bool has_new_first_party_for_cookies, | 400 bool has_new_first_party_for_cookies, |
400 const GURL& new_first_party_for_cookies); | 401 const GURL& new_first_party_for_cookies); |
401 void OnReleaseDownloadedFile(int request_id); | 402 void OnReleaseDownloadedFile(int request_id); |
402 | 403 |
403 // Creates ResourceDispatcherHostRequestInfo for a browser-initiated request | 404 // Creates ResourceDispatcherHostRequestInfo for a browser-initiated request |
404 // (a download or a page save). |download| should be true if the request | 405 // (a download or a page save). |download| should be true if the request |
405 // is a file download. | 406 // is a file download. |
406 ResourceDispatcherHostRequestInfo* CreateRequestInfoForBrowserRequest( | 407 ResourceDispatcherHostRequestInfo* CreateRequestInfoForBrowserRequest( |
407 ResourceHandler* handler, | 408 ResourceHandler* handler, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 | 510 |
510 ResourceDispatcherHostDelegate* delegate_; | 511 ResourceDispatcherHostDelegate* delegate_; |
511 | 512 |
512 static bool is_prefetch_enabled_; | 513 static bool is_prefetch_enabled_; |
513 bool allow_cross_origin_auth_prompt_; | 514 bool allow_cross_origin_auth_prompt_; |
514 | 515 |
515 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 516 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
516 }; | 517 }; |
517 | 518 |
518 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 519 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |