Add external deleter support to base::RefCounted
The external deleter is needed when the destructor of |T| is unavailable
for base::RefCounted, e.g. Blink's ref counted classes can be destroyed
by WTF::RefCounted, but cannot by base::RefCounted.
In such case, we need to inject the destruction as the traits.
Bug: 763844
Change-Id: Id7c74d4686915b62a2b843922c976d08d0eb5b13
Reviewed-on: https://chromium-review.googlesource.com/681954
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504669}
CrOS-Libchrome-Original-Commit: 2e8a148e6c387088004f188c1e5f66169d51a340
1 file changed