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

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

Issue 1828203005: Expose SPDY pushes in DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 4 years, 8 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
« no previous file with comments | « chrome/test/data/devtools/push_test_page.html ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 RemoteToLocalTimeTicks(converter, &load_timing->proxy_resolve_end); 620 RemoteToLocalTimeTicks(converter, &load_timing->proxy_resolve_end);
621 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_start); 621 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_start);
622 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_end); 622 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_end);
623 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_start); 623 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_start);
624 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_end); 624 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_end);
625 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_start); 625 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_start);
626 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_end); 626 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_end);
627 RemoteToLocalTimeTicks(converter, &load_timing->send_start); 627 RemoteToLocalTimeTicks(converter, &load_timing->send_start);
628 RemoteToLocalTimeTicks(converter, &load_timing->send_end); 628 RemoteToLocalTimeTicks(converter, &load_timing->send_end);
629 RemoteToLocalTimeTicks(converter, &load_timing->receive_headers_end); 629 RemoteToLocalTimeTicks(converter, &load_timing->receive_headers_end);
630 RemoteToLocalTimeTicks(converter, &load_timing->push_start);
631 RemoteToLocalTimeTicks(converter, &load_timing->push_end);
630 RemoteToLocalTimeTicks(converter, &renderer_info->service_worker_start_time); 632 RemoteToLocalTimeTicks(converter, &renderer_info->service_worker_start_time);
631 RemoteToLocalTimeTicks(converter, &renderer_info->service_worker_ready_time); 633 RemoteToLocalTimeTicks(converter, &renderer_info->service_worker_ready_time);
632 634
633 // Collect UMA on the inter-process skew. 635 // Collect UMA on the inter-process skew.
634 bool is_skew_additive = false; 636 bool is_skew_additive = false;
635 if (converter.IsSkewAdditiveForMetrics()) { 637 if (converter.IsSkewAdditiveForMetrics()) {
636 is_skew_additive = true; 638 is_skew_additive = true;
637 base::TimeDelta skew = converter.GetSkewForMetrics(); 639 base::TimeDelta skew = converter.GetSkewForMetrics();
638 if (skew >= base::TimeDelta()) { 640 if (skew >= base::TimeDelta()) {
639 UMA_HISTOGRAM_TIMES( 641 UMA_HISTOGRAM_TIMES(
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 *frame_origin = extra_data->frame_origin(); 803 *frame_origin = extra_data->frame_origin();
802 return request; 804 return request;
803 } 805 }
804 806
805 void ResourceDispatcher::SetResourceSchedulingFilter( 807 void ResourceDispatcher::SetResourceSchedulingFilter(
806 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { 808 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) {
807 resource_scheduling_filter_ = resource_scheduling_filter; 809 resource_scheduling_filter_ = resource_scheduling_filter;
808 } 810 }
809 811
810 } // namespace content 812 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/data/devtools/push_test_page.html ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698