commit | ff530f772caac701bb2c1e50aded4e4068cd1e48 | [log] [tgz] |
---|---|---|
author | David Bokan <bokan@chromium.org> | Tue Dec 15 23:33:02 2020 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Dec 15 23:33:02 2020 |
tree | f80cfc288cf69688581c6bd9d4dee34642d2c863 | |
parent | c0e676f6260be629026d9bef82d1e8d17007e14c [diff] |
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}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.