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

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

Issue 94503003: Split ResourceDispatcherHostImpl::BeginRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 void UpdateRequestForTransfer(int child_id, 365 void UpdateRequestForTransfer(int child_id,
366 int route_id, 366 int route_id,
367 int request_id, 367 int request_id,
368 const ResourceHostMsg_Request& request_data, 368 const ResourceHostMsg_Request& request_data,
369 const linked_ptr<ResourceLoader>& loader); 369 const linked_ptr<ResourceLoader>& loader);
370 370
371 void BeginRequest(int request_id, 371 void BeginRequest(int request_id,
372 const ResourceHostMsg_Request& request_data, 372 const ResourceHostMsg_Request& request_data,
373 IPC::Message* sync_result, // only valid for sync 373 IPC::Message* sync_result, // only valid for sync
374 int route_id); // only valid for async 374 int route_id); // only valid for async
375
376 scoped_ptr<ResourceHandler> CreateResourceHandler(
jam 2013/12/02 17:23:55 nit: add comment
tyoshino (SeeGerritForStatus) 2013/12/03 04:50:19 Done.
377 net::URLRequest* request,
378 const ResourceHostMsg_Request& request_data,
379 IPC::Message* sync_result,
380 int route_id,
381 int process_type,
382 int child_id,
383 ResourceContext* resource_context);
384
375 void OnDataDownloadedACK(int request_id); 385 void OnDataDownloadedACK(int request_id);
376 void OnUploadProgressACK(int request_id); 386 void OnUploadProgressACK(int request_id);
377 void OnCancelRequest(int request_id); 387 void OnCancelRequest(int request_id);
378 void OnReleaseDownloadedFile(int request_id); 388 void OnReleaseDownloadedFile(int request_id);
379 389
380 // Creates ResourceRequestInfoImpl for a download or page save. 390 // Creates ResourceRequestInfoImpl for a download or page save.
381 // |download| should be true if the request is a file download. 391 // |download| should be true if the request is a file download.
382 ResourceRequestInfoImpl* CreateRequestInfo( 392 ResourceRequestInfoImpl* CreateRequestInfo(
383 int child_id, 393 int child_id,
384 int route_id, 394 int route_id,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap; 519 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap;
510 520
511 OfflineMap offline_policy_map_; 521 OfflineMap offline_policy_map_;
512 522
513 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 523 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
514 }; 524 };
515 525
516 } // namespace content 526 } // namespace content
517 527
518 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 528 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698