Chromium Code Reviews| Index: content/browser/service_worker/service_worker_controllee_request_handler.cc |
| diff --git a/content/browser/service_worker/service_worker_controllee_request_handler.cc b/content/browser/service_worker/service_worker_controllee_request_handler.cc |
| index 2ef8b6fa823ceb1d09b7560f006321453480e732..7d98a0f9921bb797afd4542b96164d72547d05ba 100644 |
| --- a/content/browser/service_worker/service_worker_controllee_request_handler.cc |
| +++ b/content/browser/service_worker/service_worker_controllee_request_handler.cc |
| @@ -65,8 +65,9 @@ net::URLRequestJob* ServiceWorkerControlleeRequestHandler::MaybeCreateJob( |
| net::NetworkDelegate* network_delegate, |
| ResourceContext* resource_context) { |
| if (job_.get() && worker_start_time_.is_null()) { |
| - // Save worker-start time of the first job. |
| + // Save worker timeings of the first job. |
|
Tom Sepez
2015/06/05 15:33:06
nit: sp. timings
Kunihiko Sakamoto
2015/06/08 01:51:43
Done.
|
| worker_start_time_ = job_->worker_start_time(); |
| + worker_ready_time_ = job_->worker_ready_time(); |
| } |
| if (!context_ || !provider_host_) { |
| @@ -119,21 +120,24 @@ void ServiceWorkerControlleeRequestHandler::GetExtraResponseInfo( |
| bool* was_fallback_required_by_service_worker, |
| GURL* original_url_via_service_worker, |
| blink::WebServiceWorkerResponseType* response_type_via_service_worker, |
| - base::TimeTicks* worker_start_time) const { |
| + base::TimeTicks* worker_start_time, |
| + base::TimeTicks* worker_ready_time) const { |
| if (!job_.get()) { |
| *was_fetched_via_service_worker = false; |
| *was_fallback_required_by_service_worker = false; |
| *original_url_via_service_worker = GURL(); |
| *worker_start_time = worker_start_time_; |
| + *worker_ready_time = worker_ready_time_; |
| return; |
| } |
| job_->GetExtraResponseInfo( |
| was_fetched_via_service_worker, was_fallback_required_by_service_worker, |
| original_url_via_service_worker, response_type_via_service_worker, |
| - worker_start_time); |
| + worker_start_time, worker_ready_time); |
| if (!worker_start_time_.is_null()) { |
| - // If we have worker start time from previous job, use it. |
| + // If we have worker timings from previous job, use it. |
| *worker_start_time = worker_start_time_; |
| + *worker_ready_time = worker_ready_time_; |
| } |
| } |