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

Issue 2355723005: Worker: Introduce WorkerReportingProxy::willEvaluateWorkerScript() (Closed)

Created:
4 years, 3 months ago by nhiroki
Modified:
4 years, 3 months ago
Reviewers:
falken, haraken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, nhiroki, shimazu+worker_chromium.org, falken, kinuko+worker_chromium.org, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org, kinuko+watch, tzik, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: 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)
nhiroki
PTAL, thanks!
4 years, 3 months ago (2016-09-21 07:10:45 UTC) #8
falken
https://codereview.chromium.org/2355723005/diff/20001/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h File third_party/WebKit/Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/2355723005/diff/20001/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h#newcode64 third_party/WebKit/Source/core/workers/WorkerReportingProxy.h:64: // evaluated. nit: the "Evaluate" function names and comments ...
4 years, 3 months ago (2016-09-21 14:10:17 UTC) #11
nhiroki
Thank you! Updated. https://codereview.chromium.org/2355723005/diff/20001/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h File third_party/WebKit/Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/2355723005/diff/20001/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h#newcode64 third_party/WebKit/Source/core/workers/WorkerReportingProxy.h:64: // evaluated. On 2016/09/21 14:10:17, falken ...
4 years, 3 months ago (2016-09-21 15:37:57 UTC) #12
falken
I like that. lgtm https://codereview.chromium.org/2355723005/diff/40001/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h File third_party/WebKit/Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/2355723005/diff/40001/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h#newcode67 third_party/WebKit/Source/core/workers/WorkerReportingProxy.h:67: // Invoked when the imported ...
4 years, 3 months ago (2016-09-23 00:22:06 UTC) #17
nhiroki
Thank you! https://codereview.chromium.org/2355723005/diff/40001/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h File third_party/WebKit/Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/2355723005/diff/40001/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h#newcode67 third_party/WebKit/Source/core/workers/WorkerReportingProxy.h:67: // Invoked when the imported script is ...
4 years, 3 months ago (2016-09-23 00:25:13 UTC) #18
nhiroki
+haraken, can you review Source/web/? Thanks!
4 years, 3 months ago (2016-09-23 00:26:42 UTC) #20
haraken
On 2016/09/23 00:26:42, nhiroki wrote: > +haraken, can you review Source/web/? Thanks! LGTM
4 years, 3 months ago (2016-09-23 00:27:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2355723005/60001
4 years, 3 months ago (2016-09-23 00:41:13 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-23 02:22:13 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 02:24:28 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/97f2c9054251e15ae8520cc7bf193e18c32eb6b3
Cr-Commit-Position: refs/heads/master@{#420546}

Powered by Google App Engine
This is Rietveld 408576698