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

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

Issue 283623002: Add support for passing an arbitrary parameter to an IPC message handler. The motivation is for Web… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 7 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 | Annotate | Revision Log
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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 // Checks all pending requests and updates the load states and upload 334 // Checks all pending requests and updates the load states and upload
335 // progress if necessary. 335 // progress if necessary.
336 void UpdateLoadStates(); 336 void UpdateLoadStates();
337 337
338 // Resumes or cancels (if |cancel_requests| is true) any blocked requests. 338 // Resumes or cancels (if |cancel_requests| is true) any blocked requests.
339 void ProcessBlockedRequestsForRoute(int child_id, 339 void ProcessBlockedRequestsForRoute(int child_id,
340 int route_id, 340 int route_id,
341 bool cancel_requests); 341 bool cancel_requests);
342 342
343 void OnRequestResource(const IPC::Message& msg, 343 void OnRequestResource(int routing_id,
344 int request_id, 344 int request_id,
345 const ResourceHostMsg_Request& request_data); 345 const ResourceHostMsg_Request& request_data);
346 void OnSyncLoad(int request_id, 346 void OnSyncLoad(int request_id,
347 const ResourceHostMsg_Request& request_data, 347 const ResourceHostMsg_Request& request_data,
348 IPC::Message* sync_result); 348 IPC::Message* sync_result);
349 349
350 // Update the ResourceRequestInfo and internal maps when a request is 350 // Update the ResourceRequestInfo and internal maps when a request is
351 // transferred from one process to another. 351 // transferred from one process to another.
352 void UpdateRequestForTransfer(int child_id, 352 void UpdateRequestForTransfer(int child_id,
353 int route_id, 353 int route_id,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 DelegateMap delegate_map_; 504 DelegateMap delegate_map_;
505 505
506 scoped_ptr<ResourceScheduler> scheduler_; 506 scoped_ptr<ResourceScheduler> scheduler_;
507 507
508 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 508 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
509 }; 509 };
510 510
511 } // namespace content 511 } // namespace content
512 512
513 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 513 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/test_browser_plugin_guest.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