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

Unified Diff: content/browser/renderer_host/media/midi_dispatcher_host.h

Issue 335993002: Convert MIDI permission requests to use WebContents in preparation for switching the code to using … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/browser/renderer_host/media/midi_dispatcher_host.h
diff --git a/content/browser/renderer_host/media/midi_dispatcher_host.h b/content/browser/renderer_host/media/midi_dispatcher_host.h
deleted file mode 100644
index c16990b64dfc5dfac9237e00493bcda02cb3898f..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/media/midi_dispatcher_host.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 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_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_
-#define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_
-
-#include "content/public/browser/browser_message_filter.h"
-
-class GURL;
-
-namespace content {
-
-class BrowserContext;
-
-// MidiDispatcherHost handles permissions for using system exclusive messages.
-// It works as BrowserMessageFilter to handle IPC messages between
-// MidiDispatcher running as a RenderViewObserver.
-class MidiDispatcherHost : public BrowserMessageFilter {
- public:
- MidiDispatcherHost(int render_process_id, BrowserContext* browser_context);
-
- // BrowserMessageFilter implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
- virtual void OverrideThreadForMessage(
- const IPC::Message& message, BrowserThread::ID* thread) OVERRIDE;
-
- protected:
- virtual ~MidiDispatcherHost();
-
- private:
- void OnRequestSysExPermission(int render_view_id,
- int bridge_id,
- const GURL& origin,
- bool user_gesture);
- void OnCancelSysExPermissionRequest(int render_view_id,
- int bridge_id,
- const GURL& requesting_frame);
- void WasSysExPermissionGranted(int render_view_id,
- int bridge_id,
- bool is_allowed);
-
- int render_process_id_;
- BrowserContext* browser_context_;
-
- DISALLOW_COPY_AND_ASSIGN(MidiDispatcherHost);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_
« no previous file with comments | « content/browser/media/midi_host_unittest.cc ('k') | content/browser/renderer_host/media/midi_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698