Convert CastChannelAPI to RepeatingCallback
The same EventDisptachCallback in this class is invoked each time a message or error occurs. The CastMessageHandler that owns the callback is only removed when a listener is so the callback may be executed several times.. CastMessageHandler copies the callback and binds it using BindOnce (since the posted task will be invoked only once). Due to the copy, this is semantically a RepeatingCallback. Since Callback is a typedef of RepeatingCallback this is purely a rename and no-op. Bug: 1152268 Change-Id: Ie88c7c1d9b01356ded2469f41caa40865bf41895 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2593559 Commit-Queue: mark a. foltz <mfoltz@chromium.org> Reviewed-by:mark a. foltz <mfoltz@chromium.org> Cr-Commit-Position: refs/heads/master@{#837321}
Showing
Please register or sign in to comment