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
tree: 4b296a6f2c2397d30faad4b2f3e11db0433dde78
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. ipc/
  6. testing/
  7. third_party/