| 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/debug/trace_event.h" | |
| 9 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "base/trace_event/trace_event.h" |
| 11 | 11 |
| 12 namespace media { | 12 namespace media { |
| 13 | 13 |
| 14 MidiManager::MidiManager() | 14 MidiManager::MidiManager() |
| 15 : initialized_(false), | 15 : initialized_(false), |
| 16 result_(MIDI_NOT_SUPPORTED) { | 16 result_(MIDI_NOT_SUPPORTED) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 MidiManager::~MidiManager() { | 19 MidiManager::~MidiManager() { |
| 20 } | 20 } |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 void MidiManager::AddInitialPorts(MidiManagerClient* client) { | 163 void MidiManager::AddInitialPorts(MidiManagerClient* client) { |
| 164 lock_.AssertAcquired(); | 164 lock_.AssertAcquired(); |
| 165 | 165 |
| 166 for (const auto& info : input_ports_) | 166 for (const auto& info : input_ports_) |
| 167 client->AddInputPort(info); | 167 client->AddInputPort(info); |
| 168 for (const auto& info : output_ports_) | 168 for (const auto& info : output_ports_) |
| 169 client->AddOutputPort(info); | 169 client->AddOutputPort(info); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace media | 172 } // namespace media |
| OLD | NEW |