Index: content/browser/renderer_host/media/midi_host.h |
diff --git a/content/browser/renderer_host/media/midi_host.h b/content/browser/renderer_host/media/midi_host.h |
index e3b9df1b6bea56f7bc113c223e48c51d18d3974c..c7d9366fe14f086b9d618b0b1bd0d8fe8db9ca25 100644 |
--- a/content/browser/renderer_host/media/midi_host.h |
+++ b/content/browser/renderer_host/media/midi_host.h |
@@ -9,6 +9,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
+#include "base/memory/scoped_vector.h" |
#include "content/common/content_export.h" |
#include "content/public/browser/browser_message_filter.h" |
#include "content/public/browser/browser_thread.h" |
@@ -16,6 +17,7 @@ |
namespace media { |
class MIDIManager; |
+class MIDIMessageQueue; |
} |
namespace content { |
@@ -33,11 +35,10 @@ class CONTENT_EXPORT MIDIHost |
bool* message_was_ok) OVERRIDE; |
// MIDIManagerClient implementation. |
- virtual void ReceiveMIDIData( |
- uint32 port, |
- const uint8* data, |
- size_t length, |
- double timestamp) OVERRIDE; |
+ virtual void ReceiveMIDIData(uint32 port, |
+ const uint8* data, |
+ size_t length, |
+ double timestamp) OVERRIDE; |
virtual void AccumulateMIDIBytesSent(size_t n) OVERRIDE; |
// Start session to access MIDI hardware. |
@@ -56,6 +57,10 @@ class CONTENT_EXPORT MIDIHost |
int renderer_process_id_; |
+ // Represents if the renderer has a permission to send/receive MIDI SysEX |
+ // messages. |
+ bool has_sys_ex_permission_; |
+ |
// |midi_manager_| talks to the platform-specific MIDI APIs. |
// It can be NULL if the platform (or our current implementation) |
// does not support MIDI. If not supported then a call to |
@@ -63,6 +68,9 @@ class CONTENT_EXPORT MIDIHost |
// OnSendData() will do nothing. |
media::MIDIManager* const midi_manager_; |
+ // Buffers where data sent from each MIDI input port is stored. |
+ ScopedVector<media::MIDIMessageQueue> received_messages_queues_; |
+ |
// The number of bytes sent to the platform-specific MIDI sending |
// system, but not yet completed. |
size_t sent_bytes_in_flight_; |