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

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

Issue 66183002: Replace MessageLoopProxy with SingleThreadTaskRunner for the rest of media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop/message_loop_proxy.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 #include "media/base/media_export.h" 15 #include "media/base/media_export.h"
16 #include "media/midi/midi_port_info.h" 16 #include "media/midi/midi_port_info.h"
17 17
18 namespace base { 18 namespace base {
19 class SingleThreadTaskRunner;
19 class Thread; 20 class Thread;
20 } 21 }
21 22
22 namespace media { 23 namespace media {
23 24
24 // A MIDIManagerClient registers with the MIDIManager to receive MIDI data. 25 // A MIDIManagerClient registers with the MIDIManager to receive MIDI data.
25 // See MIDIManager::RequestAccess() and MIDIManager::ReleaseAccess() 26 // See MIDIManager::RequestAccess() and MIDIManager::ReleaseAccess()
26 // for details. 27 // for details.
27 class MEDIA_EXPORT MIDIManagerClient { 28 class MEDIA_EXPORT MIDIManagerClient {
28 public: 29 public:
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 117
117 // Protects access to our clients. 118 // Protects access to our clients.
118 base::Lock clients_lock_; 119 base::Lock clients_lock_;
119 120
120 MIDIPortInfoList input_ports_; 121 MIDIPortInfoList input_ports_;
121 MIDIPortInfoList output_ports_; 122 MIDIPortInfoList output_ports_;
122 123
123 // |send_thread_| is used to send MIDI data by calling the platform-specific 124 // |send_thread_| is used to send MIDI data by calling the platform-specific
124 // API. 125 // API.
125 scoped_ptr<base::Thread> send_thread_; 126 scoped_ptr<base::Thread> send_thread_;
126 scoped_refptr<base::MessageLoopProxy> send_message_loop_; 127 scoped_refptr<base::SingleThreadTaskRunner> send_message_loop_;
127 128
128 DISALLOW_COPY_AND_ASSIGN(MIDIManager); 129 DISALLOW_COPY_AND_ASSIGN(MIDIManager);
129 }; 130 };
130 131
131 } // namespace media 132 } // namespace media
132 133
133 #endif // MEDIA_MIDI_MIDI_MANAGER_H_ 134 #endif // MEDIA_MIDI_MIDI_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698