| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_WIN_H_ | 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_WIN_H_ |
| 6 #define MEDIA_MIDI_MIDI_MANAGER_WIN_H_ | 6 #define MEDIA_MIDI_MIDI_MANAGER_WIN_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "media/midi/midi_manager.h" | 16 #include "media/midi/midi_manager.h" |
| 17 | 17 |
| 18 namespace media { | 18 namespace media { |
| 19 namespace midi { | 19 namespace midi { |
| 20 | 20 |
| 21 class MidiServiceWinDelegate { | 21 class MidiServiceWinDelegate { |
| 22 public: | 22 public: |
| 23 virtual ~MidiServiceWinDelegate() {} | 23 virtual ~MidiServiceWinDelegate() {} |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void OnCompleteInitialization(Result result) final; | 61 void OnCompleteInitialization(Result result) final; |
| 62 void OnAddInputPort(MidiPortInfo info) final; | 62 void OnAddInputPort(MidiPortInfo info) final; |
| 63 void OnAddOutputPort(MidiPortInfo info) final; | 63 void OnAddOutputPort(MidiPortInfo info) final; |
| 64 void OnSetInputPortState(uint32_t port_index, MidiPortState state) final; | 64 void OnSetInputPortState(uint32_t port_index, MidiPortState state) final; |
| 65 void OnSetOutputPortState(uint32_t port_index, MidiPortState state) final; | 65 void OnSetOutputPortState(uint32_t port_index, MidiPortState state) final; |
| 66 void OnReceiveMidiData(uint32_t port_index, | 66 void OnReceiveMidiData(uint32_t port_index, |
| 67 const std::vector<uint8_t>& data, | 67 const std::vector<uint8_t>& data, |
| 68 base::TimeTicks time) final; | 68 base::TimeTicks time) final; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 scoped_ptr<MidiServiceWin> midi_service_; | 71 std::unique_ptr<MidiServiceWin> midi_service_; |
| 72 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin); | 72 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace midi | 75 } // namespace midi |
| 76 } // namespace media | 76 } // namespace media |
| 77 | 77 |
| 78 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_ | 78 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_ |
| OLD | NEW |