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

Unified Diff: content/renderer/media/renderer_webmidiaccessor_impl.h

Issue 16025005: Web MIDI API back-end (work-in-progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use int64 in ParamTraits 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 side-by-side diff with in-line comments
Download patch
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..c9c03da3d62ace5eee4429d256542764490256bb
--- /dev/null
+++ b/content/renderer/media/renderer_webmidiaccessor_impl.h
@@ -0,0 +1,39 @@
+// 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_WEBMIDIACCESOR_IMPL_H_
+#define CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESOR_IMPL_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "third_party/WebKit/public/platform/WebMIDIAccessor.h"
+
+namespace content {
+
+class MIDIMessageFilter;
+
+class RendererWebMIDIAccessorImpl
+ : public WebKit::WebMIDIAccessor {
+ public:
+ RendererWebMIDIAccessorImpl(WebKit::WebMIDIAccessor::Client* client);
scherkus (not reviewing) 2013/06/12 01:28:47 explicit
Chris Rogers 2013/06/12 20:34:35 Done.
+ virtual ~RendererWebMIDIAccessorImpl();
+
+ // WebKit::WebMIDIAccessor
scherkus (not reviewing) 2013/06/12 01:28:47 nit: ... implementation.
Chris Rogers 2013/06/12 20:34:35 Done.
+ virtual void requestAccess(int access) OVERRIDE;
+ virtual void sendMIDIData(unsigned port_index,
+ const unsigned char* data,
+ size_t length,
+ double timestamp) OVERRIDE;
+
+ private:
+ WebKit::WebMIDIAccessor::Client* client_;
+
+ MIDIMessageFilter* midi_message_filter();
+
+ DISALLOW_COPY_AND_ASSIGN(RendererWebMIDIAccessorImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESOR_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698