#ifndef CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESSOR_IMPL_H_
#define CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESSOR_IMPL_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "third_party/WebKit/public/platform/WebMIDIAccessor.h"
#include "third_party/WebKit/public/platform/WebMIDIAccessorClient.h"
namespace content {
class MidiMessageFilter;
class RendererWebMIDIAccessorImpl
: public blink::WebMIDIAccessor {
public:
explicit RendererWebMIDIAccessorImpl(
blink::WebMIDIAccessorClient* client);
virtual ~RendererWebMIDIAccessorImpl();
virtual void startSession();
virtual void sendMIDIData(unsigned port_index,
const unsigned char* data,
size_t length,
double timestamp);
private:
blink::WebMIDIAccessorClient* client_;
MidiMessageFilter* midi_message_filter();
DISALLOW_COPY_AND_ASSIGN(RendererWebMIDIAccessorImpl);
};
}
#endif