| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_alsa.h" | 5 #include "media/midi/midi_manager_alsa.h" |
| 6 | 6 |
| 7 #include <errno.h> |
| 7 #include <poll.h> | 8 #include <poll.h> |
| 8 #include <stdlib.h> | 9 #include <stdlib.h> |
| 9 #include <algorithm> | 10 #include <algorithm> |
| 10 #include <string> | 11 #include <string> |
| 11 | 12 |
| 12 #include "base/bind.h" | 13 #include "base/bind.h" |
| 13 #include "base/json/json_string_value_serializer.h" | 14 #include "base/json/json_string_value_serializer.h" |
| 14 #include "base/logging.h" | 15 #include "base/logging.h" |
| 15 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 16 #include "base/posix/eintr_wrapper.h" | 17 #include "base/posix/eintr_wrapper.h" |
| (...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 source_map_[AddrToInt(client_id, port_id)] = port_index; | 1341 source_map_[AddrToInt(client_id, port_id)] = port_index; |
| 1341 return true; | 1342 return true; |
| 1342 } | 1343 } |
| 1343 | 1344 |
| 1344 MidiManager* MidiManager::Create() { | 1345 MidiManager* MidiManager::Create() { |
| 1345 return new MidiManagerAlsa(); | 1346 return new MidiManagerAlsa(); |
| 1346 } | 1347 } |
| 1347 | 1348 |
| 1348 } // namespace midi | 1349 } // namespace midi |
| 1349 } // namespace media | 1350 } // namespace media |
| OLD | NEW |