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 #ifndef MEDIA_MIDI_MIDI_MANAGER_ALSA_H_ | 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_ALSA_H_ |
6 #define MEDIA_MIDI_MIDI_MANAGER_ALSA_H_ | 6 #define MEDIA_MIDI_MIDI_MANAGER_ALSA_H_ |
7 | 7 |
8 #include <alsa/asoundlib.h> | 8 #include <alsa/asoundlib.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "device/udev_linux/scoped_udev.h" | 22 #include "device/udev_linux/scoped_udev.h" |
23 #include "media/midi/midi_export.h" | 23 #include "media/midi/midi_export.h" |
24 #include "media/midi/midi_manager.h" | 24 #include "media/midi/midi_manager.h" |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 class ThreadChecker; | 27 class ThreadChecker; |
28 } | 28 } |
29 | 29 |
30 namespace media { | |
31 namespace midi { | 30 namespace midi { |
32 | 31 |
33 class MIDI_EXPORT MidiManagerAlsa final : public MidiManager { | 32 class MIDI_EXPORT MidiManagerAlsa final : public MidiManager { |
34 public: | 33 public: |
35 MidiManagerAlsa(); | 34 MidiManagerAlsa(); |
36 ~MidiManagerAlsa() override; | 35 ~MidiManagerAlsa() override; |
37 | 36 |
38 // MidiManager implementation. | 37 // MidiManager implementation. |
39 void StartInitialization() override; | 38 void StartInitialization() override; |
40 void Finalize() override; | 39 void Finalize() override; |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 | 449 |
451 // Threads for sending and receiving. These are initialized in the | 450 // Threads for sending and receiving. These are initialized in the |
452 // constructor, but are started at the end of StartInitialization. | 451 // constructor, but are started at the end of StartInitialization. |
453 base::Thread event_thread_; | 452 base::Thread event_thread_; |
454 base::Thread send_thread_; | 453 base::Thread send_thread_; |
455 | 454 |
456 DISALLOW_COPY_AND_ASSIGN(MidiManagerAlsa); | 455 DISALLOW_COPY_AND_ASSIGN(MidiManagerAlsa); |
457 }; | 456 }; |
458 | 457 |
459 } // namespace midi | 458 } // namespace midi |
460 } // namespace media | |
461 | 459 |
462 #endif // MEDIA_MIDI_MIDI_MANAGER_ALSA_H_ | 460 #endif // MEDIA_MIDI_MIDI_MANAGER_ALSA_H_ |
OLD | NEW |