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