DescriptionWorker: Introduce WorkerReportingProxy::willEvaluateWorkerScript()
This introduces WorkerReportingProxy::willEvaluateWorkerScript() and removes
WorkerReportingProxy::didLoadWorkerScript().
Before this CL, didLoadWorkerScript() was called during WorkerThread
initialization. This timing was late, but it was intended because one of
observers (ServiceWorker) wanted to access WorkerGlobalScope in the notification
that is created during WorkerThread initialization in order to record size of
worker scripts.
After this CL, recording the size is done in willEvaluateWorkerScript() that
would be more appropriate timing for the operation. willEvaluateWorkerScript()
is also useful for unit tests. It enables them to wait until the timing that
they really wait for.
BUG=640843
Committed: https://crrev.com/97f2c9054251e15ae8520cc7bf193e18c32eb6b3
Cr-Commit-Position: refs/heads/master@{#420546}
Patch Set 1 #
Total comments: 2
Patch Set 2 : call willEvaluateImportedScript() for imported scripts instead of willEvaluateWorkerScript() #
Total comments: 2
Patch Set 3 : fix comment #Messages
Total messages: 29 (19 generated)
|