Chromium Code Reviews| Index: content/renderer/media/renderer_webmidiaccessor_impl.h |
| diff --git a/content/renderer/media/renderer_webmidiaccessor_impl.h b/content/renderer/media/renderer_webmidiaccessor_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c3c88419feeb46394f6029b973fbd92efe65eadf |
| --- /dev/null |
| +++ b/content/renderer/media/renderer_webmidiaccessor_impl.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#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 WebKit::WebMIDIAccessor { |
| + public: |
| + explicit RendererWebMIDIAccessorImpl( |
| + WebKit::WebMIDIAccessorClient* client); |
| + virtual ~RendererWebMIDIAccessorImpl(); |
| + |
| + // WebKit::WebMIDIAccessor implementation. |
| + virtual void requestAccess(int access) OVERRIDE; |
| + virtual void sendMIDIData(unsigned port_index, |
| + const unsigned char* data, |
|
palmer
2013/06/19 21:39:15
FWIW, you use uint8 elsewhere. It doesn't matter b
Chris Rogers
2013/06/20 17:41:33
In this case it's because it's a Blink-API boundar
|
| + size_t length, |
| + double timestamp) OVERRIDE; |
| + |
| + private: |
| + WebKit::WebMIDIAccessorClient* client_; |
| + |
| + MIDIMessageFilter* midi_message_filter(); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(RendererWebMIDIAccessorImpl); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESSOR_IMPL_H_ |