| 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_H_ | 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_H_ |
| 6 #define MEDIA_MIDI_MIDI_MANAGER_H_ | 6 #define MEDIA_MIDI_MIDI_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class SingleThreadTaskRunner; | 23 class SingleThreadTaskRunner; |
| 24 } // namespace base | 24 } // namespace base |
| 25 | 25 |
| 26 namespace midi { | 26 namespace midi { |
| 27 | 27 |
| 28 // A MidiManagerClient registers with the MidiManager to receive MIDI data. | 28 // A MidiManagerClient registers with the MidiManager to receive MIDI data. |
| 29 // See MidiManager::RequestAccess() and MidiManager::ReleaseAccess() | 29 // See MidiManager::RequestAccess() and MidiManager::ReleaseAccess() |
| 30 // for details. | 30 // for details. |
| 31 // TODO(toyoshim): Consider to have a MidiServiceClient interface. |
| 31 class MIDI_EXPORT MidiManagerClient { | 32 class MIDI_EXPORT MidiManagerClient { |
| 32 public: | 33 public: |
| 33 virtual ~MidiManagerClient() {} | 34 virtual ~MidiManagerClient() {} |
| 34 | 35 |
| 35 // AddInputPort() and AddOutputPort() are called before CompleteStartSession() | 36 // AddInputPort() and AddOutputPort() are called before CompleteStartSession() |
| 36 // is called to notify existing MIDI ports, and also called after that to | 37 // is called to notify existing MIDI ports, and also called after that to |
| 37 // notify new MIDI ports are added. | 38 // notify new MIDI ports are added. |
| 38 virtual void AddInputPort(const MidiPortInfo& info) = 0; | 39 virtual void AddInputPort(const MidiPortInfo& info) = 0; |
| 39 virtual void AddOutputPort(const MidiPortInfo& info) = 0; | 40 virtual void AddOutputPort(const MidiPortInfo& info) = 0; |
| 40 | 41 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // |session_thread_runner_|, |initialization_state_|, |finalize_|, |result_|, | 215 // |session_thread_runner_|, |initialization_state_|, |finalize_|, |result_|, |
| 215 // |input_ports_| and |output_ports_|. | 216 // |input_ports_| and |output_ports_|. |
| 216 base::Lock lock_; | 217 base::Lock lock_; |
| 217 | 218 |
| 218 DISALLOW_COPY_AND_ASSIGN(MidiManager); | 219 DISALLOW_COPY_AND_ASSIGN(MidiManager); |
| 219 }; | 220 }; |
| 220 | 221 |
| 221 } // namespace midi | 222 } // namespace midi |
| 222 | 223 |
| 223 #endif // MEDIA_MIDI_MIDI_MANAGER_H_ | 224 #endif // MEDIA_MIDI_MIDI_MANAGER_H_ |
| OLD | NEW |