Web MIDI: create MIDIClient on a client thread to receive event notifications
commitb93adcd5d33d93da96f928c61e7ac8a8a1b0ca41
authortoyoshim <toyoshim@chromium.org>
Wed, 15 Oct 2014 12:50:07 +0000 (15 05:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 15 Oct 2014 12:50:22 +0000 (15 12:50 +0000)
tree203aaebca45e7aab1e9d22f81b6b780cf9752782
parent184b822a2e8805d2f1fabfa5b8c67ba22b0a4839
Web MIDI: create MIDIClient on a client thread to receive event notifications

To receive CoreMIDI event notifications, MIDIClient should be created in
a separate thread since events will be notified to the thread on which
MIDIClientCreate was called. The thread should run CFRunLoop.

BUG=422333
TEST=media_unittests

Review URL: https://codereview.chromium.org/638223004

Cr-Commit-Position: refs/heads/master@{#299679}
media/midi/midi_manager_mac.cc
media/midi/midi_manager_mac.h
media/midi/midi_manager_unittest.cc