| 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 response->headers = result.headers; | 565 response->headers = result.headers; |
| 566 response->mime_type = result.mime_type; | 566 response->mime_type = result.mime_type; |
| 567 response->charset = result.charset; | 567 response->charset = result.charset; |
| 568 response->request_time = result.request_time; | 568 response->request_time = result.request_time; |
| 569 response->response_time = result.response_time; | 569 response->response_time = result.response_time; |
| 570 response->encoded_data_length = result.encoded_data_length; | 570 response->encoded_data_length = result.encoded_data_length; |
| 571 response->load_timing = result.load_timing; | 571 response->load_timing = result.load_timing; |
| 572 response->devtools_info = result.devtools_info; | 572 response->devtools_info = result.devtools_info; |
| 573 response->data.swap(result.data); | 573 response->data.swap(result.data); |
| 574 response->download_file_path = result.download_file_path; | 574 response->download_file_path = result.download_file_path; |
| 575 response->socket_address = result.socket_address; |
| 575 } | 576 } |
| 576 | 577 |
| 577 int ResourceDispatcher::StartAsync(const RequestInfo& request_info, | 578 int ResourceDispatcher::StartAsync(const RequestInfo& request_info, |
| 578 ResourceRequestBody* request_body, | 579 ResourceRequestBody* request_body, |
| 579 scoped_ptr<RequestPeer> peer) { | 580 scoped_ptr<RequestPeer> peer) { |
| 580 GURL frame_origin; | 581 GURL frame_origin; |
| 581 scoped_ptr<ResourceHostMsg_Request> request = | 582 scoped_ptr<ResourceHostMsg_Request> request = |
| 582 CreateRequest(request_info, request_body, &frame_origin); | 583 CreateRequest(request_info, request_body, &frame_origin); |
| 583 | 584 |
| 584 // Compute a unique request_id for this renderer process. | 585 // Compute a unique request_id for this renderer process. |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 *frame_origin = extra_data->frame_origin(); | 808 *frame_origin = extra_data->frame_origin(); |
| 808 return request; | 809 return request; |
| 809 } | 810 } |
| 810 | 811 |
| 811 void ResourceDispatcher::SetResourceSchedulingFilter( | 812 void ResourceDispatcher::SetResourceSchedulingFilter( |
| 812 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { | 813 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { |
| 813 resource_scheduling_filter_ = resource_scheduling_filter; | 814 resource_scheduling_filter_ = resource_scheduling_filter; |
| 814 } | 815 } |
| 815 | 816 |
| 816 } // namespace content | 817 } // namespace content |
| OLD | NEW |