| Index: content/renderer/media/midi_message_filter.h
|
| diff --git a/content/renderer/media/midi_message_filter.h b/content/renderer/media/midi_message_filter.h
|
| index b7678eeceb287f5d09fe3f66e6d2fdb65558a68a..84b3c25b0d0406dc65e5787c07bab86633b7d982 100644
|
| --- a/content/renderer/media/midi_message_filter.h
|
| +++ b/content/renderer/media/midi_message_filter.h
|
| @@ -68,11 +68,13 @@ class CONTENT_EXPORT MidiMessageFilter : public IPC::MessageFilter {
|
|
|
| // Called when the browser process has approved (or denied) access to
|
| // MIDI hardware.
|
| - // TODO(toyoshim): MidiPortInfoList objects should be notified separately
|
| - // port by port.
|
| - void OnSessionStarted(media::MidiResult result,
|
| - media::MidiPortInfoList inputs,
|
| - media::MidiPortInfoList outputs);
|
| + void OnSessionStarted(media::MidiResult result);
|
| +
|
| + // Called on two cases. One is just before OnSessionStarted() is called to
|
| + // notify initial port information that already exist. The other is to add
|
| + // new port information when a new device is connected.
|
| + void OnAddInputPort(media::MidiPortInfo info);
|
| + void OnAddOutputPort(media::MidiPortInfo info);
|
|
|
| // Called when the browser process has sent MIDI data containing one or
|
| // more messages.
|
|
|