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

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

Issue 2418493002: //media/midi: use top level namespace midi rather than media.midi (Closed)
Patch Set: TAG name change s/media_midi/midi/ Created 4 years, 2 months 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/midi_jni_registrar.cc ('k') | media/midi/midi_manager.cc » ('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
11 #include <set> 11 #include <set>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "media/midi/midi_export.h" 18 #include "media/midi/midi_export.h"
19 #include "media/midi/midi_port_info.h" 19 #include "media/midi/midi_port_info.h"
20 #include "media/midi/result.h" 20 #include "media/midi/result.h"
21 21
22 namespace base { 22 namespace base {
23 class SingleThreadTaskRunner; 23 class SingleThreadTaskRunner;
24 } // namespace base 24 } // namespace base
25 25
26 namespace media {
27 namespace midi { 26 namespace midi {
28 27
29 // A MidiManagerClient registers with the MidiManager to receive MIDI data. 28 // A MidiManagerClient registers with the MidiManager to receive MIDI data.
30 // See MidiManager::RequestAccess() and MidiManager::ReleaseAccess() 29 // See MidiManager::RequestAccess() and MidiManager::ReleaseAccess()
31 // for details. 30 // for details.
32 class MIDI_EXPORT MidiManagerClient { 31 class MIDI_EXPORT MidiManagerClient {
33 public: 32 public:
34 virtual ~MidiManagerClient() {} 33 virtual ~MidiManagerClient() {}
35 34
36 // AddInputPort() and AddOutputPort() are called before CompleteStartSession() 35 // AddInputPort() and AddOutputPort() are called before CompleteStartSession()
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 202
204 // Protects access to |clients_|, |pending_clients_|, 203 // Protects access to |clients_|, |pending_clients_|,
205 // |session_thread_runner_|, |initialized_|, |finalize_|, |result_|, 204 // |session_thread_runner_|, |initialized_|, |finalize_|, |result_|,
206 // |input_ports_| and |output_ports_|. 205 // |input_ports_| and |output_ports_|.
207 base::Lock lock_; 206 base::Lock lock_;
208 207
209 DISALLOW_COPY_AND_ASSIGN(MidiManager); 208 DISALLOW_COPY_AND_ASSIGN(MidiManager);
210 }; 209 };
211 210
212 } // namespace midi 211 } // namespace midi
213 } // namespace media
214 212
215 #endif // MEDIA_MIDI_MIDI_MANAGER_H_ 213 #endif // MEDIA_MIDI_MIDI_MANAGER_H_
OLDNEW
« no previous file with comments | « media/midi/midi_jni_registrar.cc ('k') | media/midi/midi_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698