Chromium Code Reviews| 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 748 } | 748 } |
| 749 | 749 |
| 750 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest( | 750 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest( |
| 751 const RequestInfo& request_info, | 751 const RequestInfo& request_info, |
| 752 ResourceRequestBody* request_body, | 752 ResourceRequestBody* request_body, |
| 753 GURL* frame_origin) { | 753 GURL* frame_origin) { |
| 754 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request); | 754 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request); |
| 755 request->method = request_info.method; | 755 request->method = request_info.method; |
| 756 request->url = request_info.url; | 756 request->url = request_info.url; |
| 757 request->first_party_for_cookies = request_info.first_party_for_cookies; | 757 request->first_party_for_cookies = request_info.first_party_for_cookies; |
| 758 request->request_initiator = request_info.request_initiator; | |
|
mmenke
2015/10/21 15:36:38
How does this work for ServiceWorker?
| |
| 758 request->referrer = request_info.referrer.url; | 759 request->referrer = request_info.referrer.url; |
| 759 request->referrer_policy = request_info.referrer.policy; | 760 request->referrer_policy = request_info.referrer.policy; |
| 760 request->headers = request_info.headers; | 761 request->headers = request_info.headers; |
| 761 request->load_flags = request_info.load_flags; | 762 request->load_flags = request_info.load_flags; |
| 762 request->origin_pid = request_info.requestor_pid; | 763 request->origin_pid = request_info.requestor_pid; |
| 763 request->resource_type = request_info.request_type; | 764 request->resource_type = request_info.request_type; |
| 764 request->priority = request_info.priority; | 765 request->priority = request_info.priority; |
| 765 request->request_context = request_info.request_context; | 766 request->request_context = request_info.request_context; |
| 766 request->appcache_host_id = request_info.appcache_host_id; | 767 request->appcache_host_id = request_info.appcache_host_id; |
| 767 request->download_to_file = request_info.download_to_file; | 768 request->download_to_file = request_info.download_to_file; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 815 *frame_origin = extra_data->frame_origin(); | 816 *frame_origin = extra_data->frame_origin(); |
| 816 return request.Pass(); | 817 return request.Pass(); |
| 817 } | 818 } |
| 818 | 819 |
| 819 void ResourceDispatcher::SetResourceSchedulingFilter( | 820 void ResourceDispatcher::SetResourceSchedulingFilter( |
| 820 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { | 821 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { |
| 821 resource_scheduling_filter_ = resource_scheduling_filter; | 822 resource_scheduling_filter_ = resource_scheduling_filter; |
| 822 } | 823 } |
| 823 | 824 |
| 824 } // namespace content | 825 } // namespace content |
| OLD | NEW |