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

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

Issue 1157823003: Refactoring timing info for ServiceWorker controlled requests [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 RemoteToLocalTimeTicks(converter, &load_timing->proxy_resolve_end); 623 RemoteToLocalTimeTicks(converter, &load_timing->proxy_resolve_end);
624 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_start); 624 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_start);
625 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_end); 625 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_end);
626 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_start); 626 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_start);
627 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_end); 627 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_end);
628 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_start); 628 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_start);
629 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_end); 629 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_end);
630 RemoteToLocalTimeTicks(converter, &load_timing->send_start); 630 RemoteToLocalTimeTicks(converter, &load_timing->send_start);
631 RemoteToLocalTimeTicks(converter, &load_timing->send_end); 631 RemoteToLocalTimeTicks(converter, &load_timing->send_end);
632 RemoteToLocalTimeTicks(converter, &load_timing->receive_headers_end); 632 RemoteToLocalTimeTicks(converter, &load_timing->receive_headers_end);
633 RemoteToLocalTimeTicks(converter, 633 RemoteToLocalTimeTicks(converter, &renderer_info->service_worker_start_time);
634 &renderer_info->service_worker_fetch_start);
635 RemoteToLocalTimeTicks(converter,
636 &renderer_info->service_worker_fetch_ready);
637 RemoteToLocalTimeTicks(converter,
638 &renderer_info->service_worker_fetch_end);
639 634
640 // Collect UMA on the inter-process skew. 635 // Collect UMA on the inter-process skew.
641 bool is_skew_additive = false; 636 bool is_skew_additive = false;
642 if (converter.IsSkewAdditiveForMetrics()) { 637 if (converter.IsSkewAdditiveForMetrics()) {
643 is_skew_additive = true; 638 is_skew_additive = true;
644 base::TimeDelta skew = converter.GetSkewForMetrics(); 639 base::TimeDelta skew = converter.GetSkewForMetrics();
645 if (skew >= base::TimeDelta()) { 640 if (skew >= base::TimeDelta()) {
646 UMA_HISTOGRAM_TIMES( 641 UMA_HISTOGRAM_TIMES(
647 "InterProcessTimeTicks.BrowserAhead_BrowserToRenderer", skew); 642 "InterProcessTimeTicks.BrowserAhead_BrowserToRenderer", skew);
648 } else { 643 } else {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 extra_data->transferred_request_request_id(); 790 extra_data->transferred_request_request_id();
796 request->service_worker_provider_id = 791 request->service_worker_provider_id =
797 extra_data->service_worker_provider_id(); 792 extra_data->service_worker_provider_id();
798 request->request_body = request_body; 793 request->request_body = request_body;
799 if (frame_origin) 794 if (frame_origin)
800 *frame_origin = extra_data->frame_origin(); 795 *frame_origin = extra_data->frame_origin();
801 return request.Pass(); 796 return request.Pass();
802 } 797 }
803 798
804 } // namespace content 799 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_url_request_job.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698