Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(892)

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 1301103002: moved upload progress logic from ResourceLoader to AsyncResourceHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: single quotes, nits, and return success on success Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698