Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: content/child/resource_dispatcher.cc

Issue 2163183002: Fix PerformanceResourceTiming transferSize field for sync XHR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_worker_tests
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 *frame_origin = extra_data->frame_origin(); 813 *frame_origin = extra_data->frame_origin();
813 return request; 814 return request;
814 } 815 }
815 816
816 void ResourceDispatcher::SetResourceSchedulingFilter( 817 void ResourceDispatcher::SetResourceSchedulingFilter(
817 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { 818 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) {
818 resource_scheduling_filter_ = resource_scheduling_filter; 819 resource_scheduling_filter_ = resource_scheduling_filter;
819 } 820 }
820 821
821 } // namespace content 822 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698