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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 response->mime_type = result.mime_type; | 567 response->mime_type = result.mime_type; |
568 response->charset = result.charset; | 568 response->charset = result.charset; |
569 response->request_time = result.request_time; | 569 response->request_time = result.request_time; |
570 response->response_time = result.response_time; | 570 response->response_time = result.response_time; |
571 response->encoded_data_length = result.encoded_data_length; | 571 response->encoded_data_length = result.encoded_data_length; |
572 response->load_timing = result.load_timing; | 572 response->load_timing = result.load_timing; |
573 response->devtools_info = result.devtools_info; | 573 response->devtools_info = result.devtools_info; |
574 response->data.swap(result.data); | 574 response->data.swap(result.data); |
575 response->download_file_path = result.download_file_path; | 575 response->download_file_path = result.download_file_path; |
576 response->socket_address = result.socket_address; | 576 response->socket_address = result.socket_address; |
| 577 response->encoded_data_length = result.encoded_data_length; |
577 response->encoded_body_length = result.encoded_body_length; | 578 response->encoded_body_length = result.encoded_body_length; |
578 } | 579 } |
579 | 580 |
580 int ResourceDispatcher::StartAsync(const RequestInfo& request_info, | 581 int ResourceDispatcher::StartAsync(const RequestInfo& request_info, |
581 ResourceRequestBodyImpl* request_body, | 582 ResourceRequestBodyImpl* request_body, |
582 std::unique_ptr<RequestPeer> peer) { | 583 std::unique_ptr<RequestPeer> peer) { |
583 GURL frame_origin; | 584 GURL frame_origin; |
584 std::unique_ptr<ResourceRequest> request = | 585 std::unique_ptr<ResourceRequest> request = |
585 CreateRequest(request_info, request_body, &frame_origin); | 586 CreateRequest(request_info, request_body, &frame_origin); |
586 | 587 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 *frame_origin = extra_data->frame_origin(); | 814 *frame_origin = extra_data->frame_origin(); |
814 return request; | 815 return request; |
815 } | 816 } |
816 | 817 |
817 void ResourceDispatcher::SetResourceSchedulingFilter( | 818 void ResourceDispatcher::SetResourceSchedulingFilter( |
818 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { | 819 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { |
819 resource_scheduling_filter_ = resource_scheduling_filter; | 820 resource_scheduling_filter_ = resource_scheduling_filter; |
820 } | 821 } |
821 | 822 |
822 } // namespace content | 823 } // namespace content |
OLD | NEW |