| 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/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/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/child_process_security_policy_impl.h" | 12 #include "content/browser/child_process_security_policy_impl.h" |
| 13 #include "content/browser/media/media_internals.h" | 13 #include "content/browser/media/media_internals.h" |
| 14 #include "content/common/media/midi_messages.h" | 14 #include "content/common/media/midi_messages.h" |
| 15 #include "content/public/browser/content_browser_client.h" | 15 #include "content/public/browser/content_browser_client.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 } | 216 } |
| 217 waiting_data_length = media::GetMidiMessageLength(current); | 217 waiting_data_length = media::GetMidiMessageLength(current); |
| 218 if (waiting_data_length == 0) | 218 if (waiting_data_length == 0) |
| 219 return false; // Error: |current| should have been a valid status byte. | 219 return false; // Error: |current| should have been a valid status byte. |
| 220 --waiting_data_length; // Found status byte | 220 --waiting_data_length; // Found status byte |
| 221 } | 221 } |
| 222 return waiting_data_length == 0 && !in_sysex; | 222 return waiting_data_length == 0 && !in_sysex; |
| 223 } | 223 } |
| 224 | 224 |
| 225 } // namespace content | 225 } // namespace content |
| OLD | NEW |