Remove use of std::function from Mojo internals

Introduces a ports::MessageFilter type for filtering messages
on a port's queue. This should be slightly more efficient since it
avoids a heap allocation, and it should lead to more useful stack
traces in certain crash reports.

BUG=609030
R=yzshen@chromium.org

Review-Url: https://codereview.chromium.org/2466993004
Cr-Commit-Position: refs/heads/master@{#429524}


CrOS-Libchrome-Original-Commit: 03e91a8a23d50943760df3c84a5439fbbc2c0e59
9 files changed
tree: c1aaa3d02185c2739d35ecd18911402dc6779400
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/