Introduce OnceClosure and BindOnce
This CL adds another flag, RepeatMode, to base::Callback to make a Callback
variant that can be run only once, and exposes it as OnceCallback.
This also adds a base:::Bind variant to create an OneOnce, and
adds provides conversions and constraints between Callbacks.
BUG=554299
Review-Url: https://codereview.chromium.org/2042223002
Cr-Commit-Position: refs/heads/master@{#418177}
CrOS-Libchrome-Original-Commit: 27d1e313968955f1a120b65b31e316263365b1b3
8 files changed