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

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

Issue 515753003: Add ServiceWorker timing information on the popup panel in DevTools's Network tab (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 net::LoadTimingInfo* load_timing = &renderer_info->load_timing; 774 net::LoadTimingInfo* load_timing = &renderer_info->load_timing;
775 RemoteToLocalTimeTicks(converter, &load_timing->request_start); 775 RemoteToLocalTimeTicks(converter, &load_timing->request_start);
776 RemoteToLocalTimeTicks(converter, &load_timing->proxy_resolve_start); 776 RemoteToLocalTimeTicks(converter, &load_timing->proxy_resolve_start);
777 RemoteToLocalTimeTicks(converter, &load_timing->proxy_resolve_end); 777 RemoteToLocalTimeTicks(converter, &load_timing->proxy_resolve_end);
778 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_start); 778 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_start);
779 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_end); 779 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_end);
780 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_start); 780 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_start);
781 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_end); 781 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_end);
782 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_start); 782 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_start);
783 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_end); 783 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_end);
784 RemoteToLocalTimeTicks(converter,
785 &load_timing->serviceworker_timing.fetch_start);
786 RemoteToLocalTimeTicks(converter,
787 &load_timing->serviceworker_timing
788 .launch_serviceworker);
789 RemoteToLocalTimeTicks(converter,
790 &load_timing->serviceworker_timing.fetch_end);
784 RemoteToLocalTimeTicks(converter, &load_timing->send_start); 791 RemoteToLocalTimeTicks(converter, &load_timing->send_start);
785 RemoteToLocalTimeTicks(converter, &load_timing->send_end); 792 RemoteToLocalTimeTicks(converter, &load_timing->send_end);
786 RemoteToLocalTimeTicks(converter, &load_timing->receive_headers_end); 793 RemoteToLocalTimeTicks(converter, &load_timing->receive_headers_end);
787 794
788 // Collect UMA on the inter-process skew. 795 // Collect UMA on the inter-process skew.
789 bool is_skew_additive = false; 796 bool is_skew_additive = false;
790 if (converter.IsSkewAdditiveForMetrics()) { 797 if (converter.IsSkewAdditiveForMetrics()) {
791 is_skew_additive = true; 798 is_skew_additive = true;
792 base::TimeDelta skew = converter.GetSkewForMetrics(); 799 base::TimeDelta skew = converter.GetSkewForMetrics();
793 if (skew >= base::TimeDelta()) { 800 if (skew >= base::TimeDelta()) {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { 883 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) {
877 while (!queue->empty()) { 884 while (!queue->empty()) {
878 IPC::Message* message = queue->front(); 885 IPC::Message* message = queue->front();
879 ReleaseResourcesInDataMessage(*message); 886 ReleaseResourcesInDataMessage(*message);
880 queue->pop_front(); 887 queue->pop_front();
881 delete message; 888 delete message;
882 } 889 }
883 } 890 }
884 891
885 } // namespace content 892 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698