| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 scoped_ptr<ResourceHandler> AddStandardHandlers( | 454 scoped_ptr<ResourceHandler> AddStandardHandlers( |
| 455 net::URLRequest* request, | 455 net::URLRequest* request, |
| 456 ResourceType resource_type, | 456 ResourceType resource_type, |
| 457 ResourceContext* resource_context, | 457 ResourceContext* resource_context, |
| 458 AppCacheService* appcache_service, | 458 AppCacheService* appcache_service, |
| 459 int child_id, | 459 int child_id, |
| 460 int route_id, | 460 int route_id, |
| 461 scoped_ptr<ResourceHandler> handler); | 461 scoped_ptr<ResourceHandler> handler); |
| 462 | 462 |
| 463 void OnDataDownloadedACK(int request_id); | 463 void OnDataDownloadedACK(int request_id); |
| 464 void OnUploadProgressACK(int request_id); | |
| 465 void OnCancelRequest(int request_id); | 464 void OnCancelRequest(int request_id); |
| 466 void OnReleaseDownloadedFile(int request_id); | 465 void OnReleaseDownloadedFile(int request_id); |
| 467 void OnDidChangePriority(int request_id, | 466 void OnDidChangePriority(int request_id, |
| 468 net::RequestPriority new_priority, | 467 net::RequestPriority new_priority, |
| 469 int intra_priority_value); | 468 int intra_priority_value); |
| 470 | 469 |
| 471 // Creates ResourceRequestInfoImpl for a download or page save. | 470 // Creates ResourceRequestInfoImpl for a download or page save. |
| 472 // |download| should be true if the request is a file download. | 471 // |download| should be true if the request is a file download. |
| 473 ResourceRequestInfoImpl* CreateRequestInfo( | 472 ResourceRequestInfoImpl* CreateRequestInfo( |
| 474 int child_id, | 473 int child_id, |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 DelegateMap delegate_map_; | 596 DelegateMap delegate_map_; |
| 598 | 597 |
| 599 scoped_ptr<ResourceScheduler> scheduler_; | 598 scoped_ptr<ResourceScheduler> scheduler_; |
| 600 | 599 |
| 601 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 600 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
| 602 }; | 601 }; |
| 603 | 602 |
| 604 } // namespace content | 603 } // namespace content |
| 605 | 604 |
| 606 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 605 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
| OLD | NEW |