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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
6 | 6 |
7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | 7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 | 690 |
691 void ResourceDispatcherHostImpl::OnRequestResource( | 691 void ResourceDispatcherHostImpl::OnRequestResource( |
692 const IPC::Message& message, | 692 const IPC::Message& message, |
693 int request_id, | 693 int request_id, |
694 const ResourceHostMsg_Request& request_data) { | 694 const ResourceHostMsg_Request& request_data) { |
695 BeginRequest(request_id, request_data, NULL, message.routing_id()); | 695 BeginRequest(request_id, request_data, NULL, message.routing_id()); |
696 } | 696 } |
697 | 697 |
698 // Begins a resource request with the given params on behalf of the specified | 698 // Begins a resource request with the given params on behalf of the specified |
699 // child process. Responses will be dispatched through the given receiver. The | 699 // child process. Responses will be dispatched through the given receiver. The |
700 // process ID is used to lookup TabContents from routing_id's in the case of a | 700 // process ID is used to lookup WebContentsImpl from routing_id's in the case of |
701 // request from a renderer. request_context is the cookie/cache context to be | 701 // a request from a renderer. request_context is the cookie/cache context to be |
702 // used for this request. | 702 // used for this request. |
703 // | 703 // |
704 // If sync_result is non-null, then a SyncLoad reply will be generated, else | 704 // If sync_result is non-null, then a SyncLoad reply will be generated, else |
705 // a normal asynchronous set of response messages will be generated. | 705 // a normal asynchronous set of response messages will be generated. |
706 void ResourceDispatcherHostImpl::OnSyncLoad( | 706 void ResourceDispatcherHostImpl::OnSyncLoad( |
707 int request_id, | 707 int request_id, |
708 const ResourceHostMsg_Request& request_data, | 708 const ResourceHostMsg_Request& request_data, |
709 IPC::Message* sync_result) { | 709 IPC::Message* sync_result) { |
710 BeginRequest(request_id, request_data, sync_result, | 710 BeginRequest(request_id, request_data, sync_result, |
711 sync_result->routing_id()); | 711 sync_result->routing_id()); |
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2293 return allow_cross_origin_auth_prompt_; | 2293 return allow_cross_origin_auth_prompt_; |
2294 } | 2294 } |
2295 | 2295 |
2296 bool ResourceDispatcherHostImpl::IsTransferredNavigation( | 2296 bool ResourceDispatcherHostImpl::IsTransferredNavigation( |
2297 const GlobalRequestID& transferred_request_id) const { | 2297 const GlobalRequestID& transferred_request_id) const { |
2298 return transferred_navigations_.find(transferred_request_id) != | 2298 return transferred_navigations_.find(transferred_request_id) != |
2299 transferred_navigations_.end(); | 2299 transferred_navigations_.end(); |
2300 } | 2300 } |
2301 | 2301 |
2302 } // namespace content | 2302 } // namespace content |
OLD | NEW |