Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: trunk/src/content/renderer/media/renderer_webmidiaccessor_impl.h

Issue 17334006: Revert 207983 "Implement Web MIDI API back-end" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESSOR_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESSOR_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "third_party/WebKit/public/platform/WebMIDIAccessor.h"
11 #include "third_party/WebKit/public/platform/WebMIDIAccessorClient.h"
12
13 namespace content {
14
15 class MIDIMessageFilter;
16
17 class RendererWebMIDIAccessorImpl
18 : public WebKit::WebMIDIAccessor {
19 public:
20 explicit RendererWebMIDIAccessorImpl(
21 WebKit::WebMIDIAccessorClient* client);
22 virtual ~RendererWebMIDIAccessorImpl();
23
24 // WebKit::WebMIDIAccessor implementation.
25 virtual void requestAccess(bool access) OVERRIDE;
26 virtual void sendMIDIData(unsigned port_index,
27 const unsigned char* data,
28 size_t length,
29 double timestamp) OVERRIDE;
30
31 private:
32 WebKit::WebMIDIAccessorClient* client_;
33
34 MIDIMessageFilter* midi_message_filter();
35
36 DISALLOW_COPY_AND_ASSIGN(RendererWebMIDIAccessorImpl);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESSOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698