Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: media/midi/midi_manager.h

Issue 2566673002: Web MIDI: introduce MidiService class (Closed)
Patch Set: merge master Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/midi/BUILD.gn ('k') | media/midi/midi_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « media/midi/BUILD.gn ('k') | media/midi/midi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698