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 #ifndef MEDIA_MIDI_MIDI_MANAGER_MAC_H_ | 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_MAC_H_ |
6 #define MEDIA_MIDI_MIDI_MANAGER_MAC_H_ | 6 #define MEDIA_MIDI_MIDI_MANAGER_MAC_H_ |
7 | 7 |
8 #include <CoreMIDI/MIDIServices.h> | 8 #include <CoreMIDI/MIDIServices.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
18 #include "media/midi/midi_export.h" | 18 #include "media/midi/midi_export.h" |
19 #include "media/midi/midi_manager.h" | 19 #include "media/midi/midi_manager.h" |
20 #include "media/midi/midi_port_info.h" | 20 #include "media/midi/midi_port_info.h" |
21 | 21 |
22 namespace media { | |
23 namespace midi { | 22 namespace midi { |
24 | 23 |
25 class MIDI_EXPORT MidiManagerMac final : public MidiManager { | 24 class MIDI_EXPORT MidiManagerMac final : public MidiManager { |
26 public: | 25 public: |
27 MidiManagerMac(); | 26 MidiManagerMac(); |
28 ~MidiManagerMac() override; | 27 ~MidiManagerMac() override; |
29 | 28 |
30 // MidiManager implementation. | 29 // MidiManager implementation. |
31 void StartInitialization() override; | 30 void StartInitialization() override; |
32 void Finalize() override; | 31 void Finalize() override; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // |client_thread_| is used to handle platform dependent operations. | 82 // |client_thread_| is used to handle platform dependent operations. |
84 base::Thread client_thread_; | 83 base::Thread client_thread_; |
85 | 84 |
86 // Sets true on destructing object to avoid starting |client_thread_| again. | 85 // Sets true on destructing object to avoid starting |client_thread_| again. |
87 bool shutdown_; | 86 bool shutdown_; |
88 | 87 |
89 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac); | 88 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac); |
90 }; | 89 }; |
91 | 90 |
92 } // namespace midi | 91 } // namespace midi |
93 } // namespace media | |
94 | 92 |
95 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_ | 93 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_ |
OLD | NEW |