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 #include "media/midi/midi_manager.h" | 5 #include "media/midi/midi_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/message_loop/message_loop_proxy.h" | |
10 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
11 | 10 |
12 namespace media { | 11 namespace media { |
13 namespace midi { | 12 namespace midi { |
14 | 13 |
15 MidiManager::MidiManager() | 14 MidiManager::MidiManager() |
16 : initialized_(false), | 15 : initialized_(false), |
17 result_(MIDI_NOT_SUPPORTED) { | 16 result_(MIDI_NOT_SUPPORTED) { |
18 } | 17 } |
19 | 18 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 lock_.AssertAcquired(); | 189 lock_.AssertAcquired(); |
191 | 190 |
192 for (const auto& info : input_ports_) | 191 for (const auto& info : input_ports_) |
193 client->AddInputPort(info); | 192 client->AddInputPort(info); |
194 for (const auto& info : output_ports_) | 193 for (const auto& info : output_ports_) |
195 client->AddOutputPort(info); | 194 client->AddOutputPort(info); |
196 } | 195 } |
197 | 196 |
198 } // namespace midi | 197 } // namespace midi |
199 } // namespace media | 198 } // namespace media |
OLD | NEW |