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

Unified Diff: trunk/src/content/renderer/media/renderer_webmidiaccessor_impl.cc

Issue 17176031: Revert 207992: This looks like a reland of r207983, which was reverted in (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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/content/renderer/media/renderer_webmidiaccessor_impl.cc
===================================================================
--- trunk/src/content/renderer/media/renderer_webmidiaccessor_impl.cc (revision 207994)
+++ trunk/src/content/renderer/media/renderer_webmidiaccessor_impl.cc (working copy)
@@ -1,43 +0,0 @@
-// 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.
-
-#include "content/renderer/media/renderer_webmidiaccessor_impl.h"
-
-#include "base/logging.h"
-#include "content/renderer/media/midi_message_filter.h"
-#include "content/renderer/render_thread_impl.h"
-
-namespace content {
-
-RendererWebMIDIAccessorImpl::RendererWebMIDIAccessorImpl(
- WebKit::WebMIDIAccessorClient* client)
- : client_(client) {
- DCHECK(client_);
-}
-
-RendererWebMIDIAccessorImpl::~RendererWebMIDIAccessorImpl() {
- midi_message_filter()->RemoveClient(client_);
-}
-
-void RendererWebMIDIAccessorImpl::requestAccess(bool access) {
- midi_message_filter()->RequestAccess(client_, access ? 1 : 0);
-}
-
-void RendererWebMIDIAccessorImpl::sendMIDIData(
- unsigned port_index,
- const unsigned char* data,
- size_t length,
- double timestamp) {
- midi_message_filter()->SendMIDIData(
- port_index,
- data,
- length,
- timestamp);
-}
-
-MIDIMessageFilter* RendererWebMIDIAccessorImpl::midi_message_filter() {
- return RenderThreadImpl::current()->midi_message_filter();
-}
-
-} // namespace content
« no previous file with comments | « trunk/src/content/renderer/media/renderer_webmidiaccessor_impl.h ('k') | trunk/src/content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698