Descriptionmedia: Add RunOnDestruction
This is a decorator of base::OnceCallback which wraps the original
callback into a new callback. When the callback runs, it runs the
original callback. When the callback is destructed without ever
running, the orignal callback will be run with parameters specified.
BUG=
TEST=
Patch Set 1 #
Messages
Total messages: 5 (5 generated)
|