commit | a3ec9613d2386591660c570754b4bddd0c888a3b | [log] [tgz] |
---|---|---|
author | Gabriel Charette <gab@chromium.org> | Thu Dec 14 17:22:40 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 14 17:22:40 2017 |
tree | 2615280ec89aa8218d77342ec7e48d25c29d57f3 | |
parent | 3d54411f1adccb400bed8374c5f2d05441b12b8e [diff] |
Replace RunLoop's Delegate::Client by a ShouldQuitWhenIdleCallback. The Client interface was diluted down to a single method at this point. Different implementations of overriding Delegate's Run() methods will need different behaviors from ShouldQuitWhenIdle(). Making it easily overrridable is key. One such example behaviour is when overriding a MessageLoopForUI/IO. When waiting inside a Run() with no more tasks, control needs to remain in the hands of the overridden MessageLoop as it may receive work first (from the system) and therefore shouldn't quit-when-idle when the overriding Delegate is out of work (the overriding Delegate can let it know to wake by posting a task to it if it gets work first). R=thestig@chromium.org Bug: 708584 Change-Id: I27a449bc3be5858b0e8d4d6482714523ad5e2b67 Reviewed-on: https://chromium-review.googlesource.com/817962 Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#524097}
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 .