| 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 media { | |
| 19 namespace midi { | 18 namespace midi { |
| 20 | 19 |
| 21 class MidiScheduler; | 20 class MidiScheduler; |
| 22 | 21 |
| 23 class MIDI_EXPORT MidiManagerWinrt final : public MidiManager { | 22 class MIDI_EXPORT MidiManagerWinrt final : public MidiManager { |
| 24 public: | 23 public: |
| 25 MidiManagerWinrt(); | 24 MidiManagerWinrt(); |
| 26 ~MidiManagerWinrt() override; | 25 ~MidiManagerWinrt() override; |
| 27 | 26 |
| 28 // MidiManager overrides: | 27 // MidiManager overrides: |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 std::unique_ptr<MidiScheduler> | 74 std::unique_ptr<MidiScheduler> |
| 76 scheduler_; // GUARDED_BY(lazy_init_member_lock_) | 75 scheduler_; // GUARDED_BY(lazy_init_member_lock_) |
| 77 | 76 |
| 78 // Incremented when a MidiPortManager is ready. | 77 // Incremented when a MidiPortManager is ready. |
| 79 uint8_t port_manager_ready_count_ = 0; | 78 uint8_t port_manager_ready_count_ = 0; |
| 80 | 79 |
| 81 DISALLOW_COPY_AND_ASSIGN(MidiManagerWinrt); | 80 DISALLOW_COPY_AND_ASSIGN(MidiManagerWinrt); |
| 82 }; | 81 }; |
| 83 | 82 |
| 84 } // namespace midi | 83 } // namespace midi |
| 85 } // namespace media | |
| 86 | 84 |
| 87 #endif // MEDIA_MIDI_MIDI_MANAGER_WINRT_H_ | 85 #endif // MEDIA_MIDI_MIDI_MANAGER_WINRT_H_ |
| OLD | NEW |