| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/midi/midi_manager.h" | 5 #include "media/midi/midi_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 | 11 |
| 12 #if !defined(OS_MACOSX) | 12 #if !defined(OS_MACOSX) && !defined(OS_WIN) |
| 13 // TODO(crogers): implement MIDIManager for other platforms. | 13 // TODO(crogers): implement MIDIManager for other platforms. |
| 14 MIDIManager* MIDIManager::Create() { | 14 MIDIManager* MIDIManager::Create() { |
| 15 return NULL; | 15 return NULL; |
| 16 } | 16 } |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 MIDIManager::MIDIManager() | 19 MIDIManager::MIDIManager() |
| 20 : initialized_(false) { | 20 : initialized_(false) { |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const uint8* data, | 56 const uint8* data, |
| 57 size_t length, | 57 size_t length, |
| 58 double timestamp) { | 58 double timestamp) { |
| 59 base::AutoLock auto_lock(clients_lock_); | 59 base::AutoLock auto_lock(clients_lock_); |
| 60 | 60 |
| 61 for (ClientList::iterator i = clients_.begin(); i != clients_.end(); ++i) | 61 for (ClientList::iterator i = clients_.begin(); i != clients_.end(); ++i) |
| 62 (*i)->ReceiveMIDIData(port_index, data, length, timestamp); | 62 (*i)->ReceiveMIDIData(port_index, data, length, timestamp); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace media | 65 } // namespace media |
| OLD | NEW |