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

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

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/common/media/midi_messages.h ('k') | content/renderer/media/midi_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/midi_message_filter.h
diff --git a/content/renderer/media/midi_message_filter.h b/content/renderer/media/midi_message_filter.h
index c34ce53225fa7419a192a12529b5eecda2117c0e..9ad6c1232aa20ffd3c314258015ff8cbd7351fee 100644
--- a/content/renderer/media/midi_message_filter.h
+++ b/content/renderer/media/midi_message_filter.h
@@ -32,7 +32,9 @@ class CONTENT_EXPORT MIDIMessageFilter
// If permission is granted, then the client's
// addInputPort() and addOutputPort() methods will be called,
// giving the client access to receive and send data.
- void RequestAccess(WebKit::WebMIDIAccessorClient* client, int access);
+ void RequestAccess(const std::string& origin,
+ WebKit::WebMIDIAccessorClient* client,
+ int access);
void RemoveClient(WebKit::WebMIDIAccessorClient* client);
// A client will only be able to call this method if it has a suitable
@@ -84,7 +86,9 @@ class CONTENT_EXPORT MIDIMessageFilter
const std::vector<uint8>& data,
double timestamp);
- void RequestAccessOnIOThread(int client_id, int access);
+ void RequestAccessOnIOThread(const std::string& origin,
+ int client_id,
+ int access);
void SendMIDIDataOnIOThread(int port,
const std::vector<uint8>& data,
« no previous file with comments | « content/common/media/midi_messages.h ('k') | content/renderer/media/midi_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698