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

Unified Diff: content/browser/renderer_host/media/midi_host.cc

Issue 18309004: Web MIDI: prepare to pass a security origin from blink to browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « content/browser/renderer_host/media/midi_host.h ('k') | content/common/media/midi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/midi_host.cc
diff --git a/content/browser/renderer_host/media/midi_host.cc b/content/browser/renderer_host/media/midi_host.cc
index 56f4099f60b62d41ef6475902608781061a23e9d..e30af63ad113f524b80ce77e71cd8c18a78c4150 100644
--- a/content/browser/renderer_host/media/midi_host.cc
+++ b/content/browser/renderer_host/media/midi_host.cc
@@ -53,7 +53,11 @@ bool MIDIHost::OnMessageReceived(const IPC::Message& message,
return handled;
}
-void MIDIHost::OnRequestAccess(int client_id, int access) {
+void MIDIHost::OnRequestAccess(const std::string& origin,
+ int client_id,
+ int access) {
+ // TODO(toyoshim): Use |origin| to handle sysex permissions.
+
MIDIPortInfoList input_ports;
MIDIPortInfoList output_ports;
« no previous file with comments | « content/browser/renderer_host/media/midi_host.h ('k') | content/common/media/midi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698