Add a BarrierClosure.
Chromium frequently needs to execute a "final" closure once a given
number of other callbacks have run. BarrierClosure encapsulates that
logic while staying as light-weight as possible.
TBR=gbillock@chromium.org, willchan@chromium.org
BUG=none
Review URL: https://chromiumcodereview.appspot.com/22859056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219446 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 285d06fced9e6778985c50778327d64f29300174
5 files changed