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

Issue 2847703002: Make ExecutionContext aware about how it can return CoreProbeSink (Closed)

Created:
3 years, 7 months ago by kinuko
Modified:
3 years, 7 months ago
Reviewers:
dgozman, alph, nhiroki
CC:
chromium-reviews, kinuko+worker_chromium.org, sof, eae+blinkwatch, shimazu+worker_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, blink-worker-reviews_chromium.org, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ExecutionContext aware about how it can return CoreProbeSink Currently ToCoreProbe code checks the given ExecutionContext's type and calls different code to get its CoreProbeSink, but in this way we need to keep adding new ToCoreProbe code every time we add new ExecutionContext, which sounds a bit cumbersome. This CL adds ExecutionContext::GetProbeSink() virtual method to mitigate that. BUG=538751 Review-Url: https://codereview.chromium.org/2847703002 Cr-Commit-Position: refs/heads/master@{#468243} Committed: https://chromium.googlesource.com/chromium/src/+/b66ac187d7971914c0cbff0bf3733feb5b27f006

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : addressed comments #

Patch Set 4 : fixed typo #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -34 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/probe/CoreProbes.h View 1 2 3 chunks +2 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/probe/CoreProbes.cpp View 2 2 chunks +0 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (23 generated)
kinuko
I'm not sure if there was a strong preference not to do this, but what ...
3 years, 7 months ago (2017-04-27 09:07:23 UTC) #5
kinuko
On 2017/04/27 09:07:23, kinuko wrote: > I'm not sure if there was a strong preference ...
3 years, 7 months ago (2017-04-27 09:45:51 UTC) #6
dgozman
Note that resolving the sink must be very performant, as we try to impede the ...
3 years, 7 months ago (2017-04-27 15:33:08 UTC) #10
alph
On 2017/04/27 15:33:08, dgozman wrote: > Note that resolving the sink must be very performant, ...
3 years, 7 months ago (2017-04-27 23:40:09 UTC) #11
dgozman
https://codereview.chromium.org/2847703002/diff/20001/third_party/WebKit/Source/core/dom/ExecutionContext.h File third_party/WebKit/Source/core/dom/ExecutionContext.h (right): https://codereview.chromium.org/2847703002/diff/20001/third_party/WebKit/Source/core/dom/ExecutionContext.h#newcode196 third_party/WebKit/Source/core/dom/ExecutionContext.h:196: virtual CoreProbeSink* GetInstrumentingAgents() { return nullptr; } Let's call ...
3 years, 7 months ago (2017-04-28 00:06:38 UTC) #12
kinuko
Thanks, updated. https://codereview.chromium.org/2847703002/diff/20001/third_party/WebKit/Source/core/dom/ExecutionContext.h File third_party/WebKit/Source/core/dom/ExecutionContext.h (right): https://codereview.chromium.org/2847703002/diff/20001/third_party/WebKit/Source/core/dom/ExecutionContext.h#newcode196 third_party/WebKit/Source/core/dom/ExecutionContext.h:196: virtual CoreProbeSink* GetInstrumentingAgents() { return nullptr; } ...
3 years, 7 months ago (2017-04-28 03:16:26 UTC) #15
nhiroki
lgtm
3 years, 7 months ago (2017-04-28 05:25:46 UTC) #19
dgozman
lgtm
3 years, 7 months ago (2017-04-28 18:38:40 UTC) #24
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/2847703002/60001
3 years, 7 months ago (2017-04-29 06:07:13 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/357821) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-04-29 06:10:23 UTC) #29
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/2847703002/80001
3 years, 7 months ago (2017-04-29 11:05:02 UTC) #32
commit-bot: I haz the power
3 years, 7 months ago (2017-04-29 15:19:29 UTC) #35
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b66ac187d7971914c0cbff0bf373...

Powered by Google App Engine
This is Rietveld 408576698