| 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/child/resource_dispatcher.h" | 7 #include "content/child/resource_dispatcher.h" |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 } | 781 } |
| 782 | 782 |
| 783 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest( | 783 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest( |
| 784 const RequestInfo& request_info, | 784 const RequestInfo& request_info, |
| 785 ResourceRequestBody* request_body, | 785 ResourceRequestBody* request_body, |
| 786 GURL* frame_origin) { | 786 GURL* frame_origin) { |
| 787 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request); | 787 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request); |
| 788 request->method = request_info.method; | 788 request->method = request_info.method; |
| 789 request->url = request_info.url; | 789 request->url = request_info.url; |
| 790 request->first_party_for_cookies = request_info.first_party_for_cookies; | 790 request->first_party_for_cookies = request_info.first_party_for_cookies; |
| 791 request->request_initiator = request_info.request_initiator; |
| 791 request->referrer = request_info.referrer.url; | 792 request->referrer = request_info.referrer.url; |
| 792 request->referrer_policy = request_info.referrer.policy; | 793 request->referrer_policy = request_info.referrer.policy; |
| 793 request->headers = request_info.headers; | 794 request->headers = request_info.headers; |
| 794 request->load_flags = request_info.load_flags; | 795 request->load_flags = request_info.load_flags; |
| 795 request->origin_pid = request_info.requestor_pid; | 796 request->origin_pid = request_info.requestor_pid; |
| 796 request->resource_type = request_info.request_type; | 797 request->resource_type = request_info.request_type; |
| 797 request->priority = request_info.priority; | 798 request->priority = request_info.priority; |
| 798 request->request_context = request_info.request_context; | 799 request->request_context = request_info.request_context; |
| 799 request->appcache_host_id = request_info.appcache_host_id; | 800 request->appcache_host_id = request_info.appcache_host_id; |
| 800 request->download_to_file = request_info.download_to_file; | 801 request->download_to_file = request_info.download_to_file; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 849 *frame_origin = extra_data->frame_origin(); | 850 *frame_origin = extra_data->frame_origin(); |
| 850 return request; | 851 return request; |
| 851 } | 852 } |
| 852 | 853 |
| 853 void ResourceDispatcher::SetResourceSchedulingFilter( | 854 void ResourceDispatcher::SetResourceSchedulingFilter( |
| 854 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { | 855 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { |
| 855 resource_scheduling_filter_ = resource_scheduling_filter; | 856 resource_scheduling_filter_ = resource_scheduling_filter; |
| 856 } | 857 } |
| 857 | 858 |
| 858 } // namespace content | 859 } // namespace content |
| OLD | NEW |