Implementation of PostTaskAndReply() in MessageLoopProxy and BrowserThread.

This ensures that the request/reply closures are always deleted on the origin
thread, or leaked if the task cannot be completed (due to message loop
shutdown).

BUG=86301
TEST=new unittests

Review URL: http://codereview.chromium.org/7210053

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97387 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: c31af70db21e370eee35a677f6fcc62a2963784a
7 files changed
tree: d59960dd32c23852fa84065e8e0c2e4de7af28fa
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/