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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_start); | 637 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_start); |
638 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_end); | 638 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.dns_end); |
639 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_start); | 639 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_start); |
640 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_end); | 640 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.connect_end); |
641 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_start); | 641 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_start); |
642 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_end); | 642 RemoteToLocalTimeTicks(converter, &load_timing->connect_timing.ssl_end); |
643 RemoteToLocalTimeTicks(converter, &load_timing->send_start); | 643 RemoteToLocalTimeTicks(converter, &load_timing->send_start); |
644 RemoteToLocalTimeTicks(converter, &load_timing->send_end); | 644 RemoteToLocalTimeTicks(converter, &load_timing->send_end); |
645 RemoteToLocalTimeTicks(converter, &load_timing->receive_headers_end); | 645 RemoteToLocalTimeTicks(converter, &load_timing->receive_headers_end); |
646 RemoteToLocalTimeTicks(converter, &renderer_info->service_worker_start_time); | 646 RemoteToLocalTimeTicks(converter, &renderer_info->service_worker_start_time); |
| 647 RemoteToLocalTimeTicks(converter, &renderer_info->service_worker_ready_time); |
647 | 648 |
648 // Collect UMA on the inter-process skew. | 649 // Collect UMA on the inter-process skew. |
649 bool is_skew_additive = false; | 650 bool is_skew_additive = false; |
650 if (converter.IsSkewAdditiveForMetrics()) { | 651 if (converter.IsSkewAdditiveForMetrics()) { |
651 is_skew_additive = true; | 652 is_skew_additive = true; |
652 base::TimeDelta skew = converter.GetSkewForMetrics(); | 653 base::TimeDelta skew = converter.GetSkewForMetrics(); |
653 if (skew >= base::TimeDelta()) { | 654 if (skew >= base::TimeDelta()) { |
654 UMA_HISTOGRAM_TIMES( | 655 UMA_HISTOGRAM_TIMES( |
655 "InterProcessTimeTicks.BrowserAhead_BrowserToRenderer", skew); | 656 "InterProcessTimeTicks.BrowserAhead_BrowserToRenderer", skew); |
656 } else { | 657 } else { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 extra_data->transferred_request_request_id(); | 804 extra_data->transferred_request_request_id(); |
804 request->service_worker_provider_id = | 805 request->service_worker_provider_id = |
805 extra_data->service_worker_provider_id(); | 806 extra_data->service_worker_provider_id(); |
806 request->request_body = request_body; | 807 request->request_body = request_body; |
807 if (frame_origin) | 808 if (frame_origin) |
808 *frame_origin = extra_data->frame_origin(); | 809 *frame_origin = extra_data->frame_origin(); |
809 return request.Pass(); | 810 return request.Pass(); |
810 } | 811 } |
811 | 812 |
812 } // namespace content | 813 } // namespace content |
OLD | NEW |