| 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 "content/browser/renderer_host/media/midi_host.h" | 5 #include "content/browser/renderer_host/media/midi_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/process.h" | 10 #include "base/process/process.h" |
| 11 #include "content/browser/browser_main_loop.h" | 11 #include "content/browser/browser_main_loop.h" |
| 12 #include "content/browser/media/media_internals.h" | 12 #include "content/browser/media/media_internals.h" |
| 13 #include "content/common/media/midi_messages.h" | 13 #include "content/common/media/midi_messages.h" |
| 14 #include "content/public/browser/content_browser_client.h" | 14 #include "content/public/browser/content_browser_client.h" |
| 15 #include "content/public/browser/media_observer.h" | 15 #include "content/public/browser/media_observer.h" |
| 16 #include "media/midi/midi_manager.h" | 16 #include "media/midi/midi_manager.h" |
| 17 | 17 |
| 18 using media::MIDIManager; | 18 using media::MIDIManager; |
| 19 using media::MIDIPortInfoList; | 19 using media::MIDIPortInfoList; |
| 20 | 20 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 const uint8* data, | 90 const uint8* data, |
| 91 size_t length, | 91 size_t length, |
| 92 double timestamp) { | 92 double timestamp) { |
| 93 TRACE_EVENT0("midi", "MIDIHost::ReceiveMIDIData"); | 93 TRACE_EVENT0("midi", "MIDIHost::ReceiveMIDIData"); |
| 94 // Send to the renderer. | 94 // Send to the renderer. |
| 95 std::vector<uint8> v(data, data + length); | 95 std::vector<uint8> v(data, data + length); |
| 96 Send(new MIDIMsg_DataReceived(port_index, v, timestamp)); | 96 Send(new MIDIMsg_DataReceived(port_index, v, timestamp)); |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace content | 99 } // namespace content |
| OLD | NEW |