| 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 const ResourceHostMsg_Request& request_data, | 395 const ResourceHostMsg_Request& request_data, |
| 396 IPC::Message* sync_result); | 396 IPC::Message* sync_result); |
| 397 void BeginRequest(int request_id, | 397 void BeginRequest(int request_id, |
| 398 const ResourceHostMsg_Request& request_data, | 398 const ResourceHostMsg_Request& request_data, |
| 399 IPC::Message* sync_result, // only valid for sync | 399 IPC::Message* sync_result, // only valid for sync |
| 400 int route_id); // only valid for async | 400 int route_id); // only valid for async |
| 401 void OnDataReceivedACK(int request_id); | 401 void OnDataReceivedACK(int request_id); |
| 402 void OnDataDownloadedACK(int request_id); | 402 void OnDataDownloadedACK(int request_id); |
| 403 void OnUploadProgressACK(int request_id); | 403 void OnUploadProgressACK(int request_id); |
| 404 void OnCancelRequest(int request_id); | 404 void OnCancelRequest(int request_id); |
| 405 void OnTransferRequestToNewPage(int new_routing_id, int request_id); | |
| 406 void OnFollowRedirect(int request_id, | 405 void OnFollowRedirect(int request_id, |
| 407 bool has_new_first_party_for_cookies, | 406 bool has_new_first_party_for_cookies, |
| 408 const GURL& new_first_party_for_cookies); | 407 const GURL& new_first_party_for_cookies); |
| 409 void OnReleaseDownloadedFile(int request_id); | 408 void OnReleaseDownloadedFile(int request_id); |
| 410 | 409 |
| 411 // Creates ResourceRequestInfoImpl for a download or page save. | 410 // Creates ResourceRequestInfoImpl for a download or page save. |
| 412 // |download| should be true if the request is a file download. | 411 // |download| should be true if the request is a file download. |
| 413 ResourceRequestInfoImpl* CreateRequestInfo( | 412 ResourceRequestInfoImpl* CreateRequestInfo( |
| 414 scoped_ptr<ResourceHandler> handler, | 413 scoped_ptr<ResourceHandler> handler, |
| 415 int child_id, | 414 int child_id, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 // http://crbug.com/90971 - Assists in tracking down use-after-frees on | 519 // http://crbug.com/90971 - Assists in tracking down use-after-frees on |
| 521 // shutdown. | 520 // shutdown. |
| 522 std::set<const ResourceContext*> active_resource_contexts_; | 521 std::set<const ResourceContext*> active_resource_contexts_; |
| 523 | 522 |
| 524 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 523 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
| 525 }; | 524 }; |
| 526 | 525 |
| 527 } // namespace content | 526 } // namespace content |
| 528 | 527 |
| 529 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 528 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
| OLD | NEW |