Record send_start timing info after starting ServiceWorker
commita14b3794ee2e759cae74a48d8554fad69396577c
authorksakamoto <ksakamoto@chromium.org>
Mon, 25 May 2015 09:45:41 +0000 (25 02:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 25 May 2015 09:46:10 +0000 (25 09:46 +0000)
tree6f72cd5640e904a6bdf15ea463c74868ae9335ac
parent692979285996f271ce80aef4677eb56a3b7ed4dd
Record send_start timing info after starting ServiceWorker

The send_start field of LoadTimingInfo, which corresponds to the
requestStart attribute of Resource Timing [1], was recorded before
starting ServiceWorker. Since that point should be represented as the
workerStart attribute [2], this patch moves send_start to
DidPrepareFetchEvent, that is just before dispatching fetch event.

[1] https://w3c.github.io/resource-timing/#widl-PerformanceResourceTiming-requestStart
[2] https://w3c.github.io/resource-timing/#widl-PerformanceResourceTiming-workerStart

BUG=465640
TEST=n/a

Review URL: https://codereview.chromium.org/1155043002

Cr-Commit-Position: refs/heads/master@{#331271}
content/browser/service_worker/service_worker_url_request_job.cc