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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 request->transferred_request_request_id = | 864 request->transferred_request_request_id = |
865 extra_data->transferred_request_request_id(); | 865 extra_data->transferred_request_request_id(); |
866 request->service_worker_provider_id = | 866 request->service_worker_provider_id = |
867 extra_data->service_worker_provider_id(); | 867 extra_data->service_worker_provider_id(); |
868 request->originated_from_service_worker = | 868 request->originated_from_service_worker = |
869 extra_data->originated_from_service_worker(); | 869 extra_data->originated_from_service_worker(); |
870 request->request_body = request_body; | 870 request->request_body = request_body; |
871 request->resource_body_stream_url = request_info.resource_body_stream_url; | 871 request->resource_body_stream_url = request_info.resource_body_stream_url; |
872 request->initiated_in_secure_context = | 872 request->initiated_in_secure_context = |
873 extra_data->initiated_in_secure_context(); | 873 extra_data->initiated_in_secure_context(); |
| 874 request->download_to_network_cache_only = |
| 875 extra_data->download_to_network_cache_only(); |
874 if (frame_origin) | 876 if (frame_origin) |
875 *frame_origin = extra_data->frame_origin(); | 877 *frame_origin = extra_data->frame_origin(); |
876 return request; | 878 return request; |
877 } | 879 } |
878 | 880 |
879 void ResourceDispatcher::SetResourceSchedulingFilter( | 881 void ResourceDispatcher::SetResourceSchedulingFilter( |
880 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { | 882 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { |
881 resource_scheduling_filter_ = resource_scheduling_filter; | 883 resource_scheduling_filter_ = resource_scheduling_filter; |
882 } | 884 } |
883 | 885 |
884 } // namespace content | 886 } // namespace content |
OLD | NEW |