| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WINRT_H_ | 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_WINRT_H_ |
| 6 #define MEDIA_MIDI_MIDI_MANAGER_WINRT_H_ | 6 #define MEDIA_MIDI_MIDI_MANAGER_WINRT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 12 #include "media/midi/midi_manager.h" | 12 #include "media/midi/midi_manager.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class ThreadChecker; | 15 class ThreadChecker; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace midi { | 18 namespace midi { |
| 19 | 19 |
| 20 class MidiScheduler; | 20 class MidiScheduler; |
| 21 class MidiService; |
| 21 | 22 |
| 22 class MIDI_EXPORT MidiManagerWinrt final : public MidiManager { | 23 class MIDI_EXPORT MidiManagerWinrt final : public MidiManager { |
| 23 public: | 24 public: |
| 24 MidiManagerWinrt(); | 25 explicit MidiManagerWinrt(MidiService* service); |
| 25 ~MidiManagerWinrt() override; | 26 ~MidiManagerWinrt() override; |
| 26 | 27 |
| 27 // MidiManager overrides: | 28 // MidiManager overrides: |
| 28 void StartInitialization() final; | 29 void StartInitialization() final; |
| 29 void Finalize() final; | 30 void Finalize() final; |
| 30 void DispatchSendMidiData(MidiManagerClient* client, | 31 void DispatchSendMidiData(MidiManagerClient* client, |
| 31 uint32_t port_index, | 32 uint32_t port_index, |
| 32 const std::vector<uint8_t>& data, | 33 const std::vector<uint8_t>& data, |
| 33 double timestamp) final; | 34 double timestamp) final; |
| 34 | 35 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 77 |
| 77 // Incremented when a MidiPortManager is ready. | 78 // Incremented when a MidiPortManager is ready. |
| 78 uint8_t port_manager_ready_count_ = 0; | 79 uint8_t port_manager_ready_count_ = 0; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(MidiManagerWinrt); | 81 DISALLOW_COPY_AND_ASSIGN(MidiManagerWinrt); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace midi | 84 } // namespace midi |
| 84 | 85 |
| 85 #endif // MEDIA_MIDI_MIDI_MANAGER_WINRT_H_ | 86 #endif // MEDIA_MIDI_MIDI_MANAGER_WINRT_H_ |
| OLD | NEW |