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

Issue 1085033003: Introduce InspectorIdentifiers<> and use it to assign/lookup LocalFrame and DocumentLoader (Closed)

Created:
5 years, 8 months ago by caseq
Modified:
5 years, 8 months ago
Reviewers:
pfeldman, yurys
CC:
blink-reviews, vivekg_samsung, eae+blinkwatch, vivekg, apavlov+blink_chromium.org, aandrey+blink_chromium.org, rwlbuis, caseq+blink_chromium.org, arv+blink, yurys+blink_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, devtools-reviews_chromium.org, loislo+blink_chromium.org, blink-reviews-style_chromium.org, sof, lushnikov+blink_chromium.org, Nate Chapin, tyoshino+watch_chromium.org, pfeldman+blink_chromium.org, Inactive, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Introduce InspectorIdentifiers<> and use it to assign/lookup LocalFrame and DocumentLoader This is the first step towards untangling most agents from non-static Page agent dependency by extracting mapping between DocumentLoader and LocalFrame and their identifiers into InspectorIdentifiers similar to how it used to be done with DOMNodeIds. - explicitly specialize WeakIdentifierMap for GC vs. non-GC types rather than conditionally compiling on ENABLE(OILPAN) so that we can use it with Oilpan for non-GC types; - generalize WeakIdentifierMap to use arbitrary identifier types and generators, provide traits for inspector's IdentifierGenerator. - introduce InspectorIdentifiers<> as a static wrapper around WeakIdentifierMap; BUG=480341 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194414

Patch Set 1 #

Patch Set 2 : removed explicit instantiation, we seem to be doing fine without it #

Total comments: 1

Patch Set 3 : review comment addressed #

Patch Set 4 : win build error fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -127 lines) Patch
M Source/core/core.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/DOMNodeIds.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/DOMNodeIds.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/Node.h View 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/dom/WeakIdentifierMap.h View 8 chunks +50 lines, -31 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorApplicationCacheAgent.cpp View 3 chunks +4 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorCSSAgent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
A Source/core/inspector/InspectorIdentifiers.h View 1 chunk +39 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.h View 3 chunks +3 lines, -11 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 6 chunks +10 lines, -46 lines 0 comments Download
M Source/core/inspector/InspectorResourceAgent.cpp View 6 chunks +13 lines, -10 lines 0 comments Download
M Source/core/inspector/InspectorStyleSheet.h View 4 chunks +2 lines, -4 lines 0 comments Download
M Source/core/inspector/InspectorStyleSheet.cpp View 1 2 4 chunks +5 lines, -7 lines 0 comments Download
M Source/core/inspector/PageRuntimeAgent.cpp View 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (8 generated)
caseq
5 years, 8 months ago (2015-04-21 16:46:19 UTC) #2
dgozman
I'm wondering why WeakIdentifierMap is a part of core/dom.
5 years, 8 months ago (2015-04-21 16:58:12 UTC) #3
caseq
On 2015/04/21 16:58:12, dgozman wrote: > I'm wondering why WeakIdentifierMap is a part of core/dom. ...
5 years, 8 months ago (2015-04-21 17:35:58 UTC) #4
caseq
5 years, 8 months ago (2015-04-23 10:13:01 UTC) #7
yurys
Is there a bug describing the general plan?
5 years, 8 months ago (2015-04-23 10:16:16 UTC) #8
caseq
Just filed bug 480341.
5 years, 8 months ago (2015-04-23 10:31:16 UTC) #9
yurys
lgtm https://codereview.chromium.org/1085033003/diff/20001/Source/core/dom/DOMNodeIds.h File Source/core/dom/DOMNodeIds.h (right): https://codereview.chromium.org/1085033003/diff/20001/Source/core/dom/DOMNodeIds.h#newcode22 Source/core/dom/DOMNodeIds.h:22: typedef WeakIdentifierMap<Node> WeakNodeMap; using
5 years, 8 months ago (2015-04-24 08:43:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1085033003/40001
5 years, 8 months ago (2015-04-24 13:51:59 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/43694)
5 years, 8 months ago (2015-04-24 14:15:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1085033003/60001
5 years, 8 months ago (2015-04-24 16:47:08 UTC) #18
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 19:21:00 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194414

Powered by Google App Engine
This is Rietveld 408576698