blob: a6a07c9702c69b4d7dcc9e2fc399a45839235bf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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(bool access) OVERRIDE;
virtual void sendMIDIData(unsigned port_index,
const unsigned char* data,
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_
|