Chromium Code Reviews| 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 midi { | 22 namespace midi { |
| 23 | 23 |
| 24 class MidiService; | |
| 25 | |
| 24 class MIDI_EXPORT MidiManagerMac final : public MidiManager { | 26 class MIDI_EXPORT MidiManagerMac final : public MidiManager { |
| 25 public: | 27 public: |
| 26 MidiManagerMac(); | 28 MidiManagerMac(MidiService* service); |
|
yhirano
2017/02/08 10:04:37
+explicit
Takashi Toyoshima
2017/02/08 11:08:55
Done.
| |
| 27 ~MidiManagerMac() override; | 29 ~MidiManagerMac() override; |
| 28 | 30 |
| 29 // MidiManager implementation. | 31 // MidiManager implementation. |
| 30 void StartInitialization() override; | 32 void StartInitialization() override; |
| 31 void Finalize() override; | 33 void Finalize() override; |
| 32 void DispatchSendMidiData(MidiManagerClient* client, | 34 void DispatchSendMidiData(MidiManagerClient* client, |
| 33 uint32_t port_index, | 35 uint32_t port_index, |
| 34 const std::vector<uint8_t>& data, | 36 const std::vector<uint8_t>& data, |
| 35 double timestamp) override; | 37 double timestamp) override; |
| 36 | 38 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 | 86 |
| 85 // Sets true on destructing object to avoid starting |client_thread_| again. | 87 // Sets true on destructing object to avoid starting |client_thread_| again. |
| 86 bool shutdown_; | 88 bool shutdown_; |
| 87 | 89 |
| 88 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac); | 90 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac); |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 } // namespace midi | 93 } // namespace midi |
| 92 | 94 |
| 93 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_ | 95 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_ |
| OLD | NEW |