Add external deleter support to WTF::RefCounted
NGPhysicalFragment needs special handling on the destruction rather than being destroyed by WTF::RefCounted. However, existing style of the destruction hook will be unavailable after unifying base::RefCounted and WTF::RefCounted. This CL adds a proper way to inject the destruction function of a ref counted object. The destruction function will be injected to base::RefCounted after the unification. Bug: 763844 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: If763525a55c4621abd711a16a531817528a42b69 Reviewed-on: https://chromium-review.googlesource.com/681955Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Taiju Tsuiki <tzik@chromium.org> Cr-Commit-Position: refs/heads/master@{#504365}
Showing
Please register or sign in to comment