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

Unified Diff: content/renderer/media/renderer_webmidiaccessor_impl.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/renderer/media/renderer_webmidiaccessor_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/renderer_webmidiaccessor_impl.cc
diff --git a/content/renderer/media/renderer_webmidiaccessor_impl.cc b/content/renderer/media/renderer_webmidiaccessor_impl.cc
index 0a8b68f6d3b53c119398b0e985ce5f005fa5f50a..4655b34eab00200f2cc55fd3a7e00773c3ea9417 100644
--- a/content/renderer/media/renderer_webmidiaccessor_impl.cc
+++ b/content/renderer/media/renderer_webmidiaccessor_impl.cc
@@ -21,7 +21,12 @@ RendererWebMIDIAccessorImpl::~RendererWebMIDIAccessorImpl() {
}
void RendererWebMIDIAccessorImpl::requestAccess(bool access) {
- midi_message_filter()->RequestAccess(client_, access ? 1 : 0);
+ midi_message_filter()->RequestAccess(std::string(), client_, access ? 1 : 0);
+}
+
+void RendererWebMIDIAccessorImpl::requestAccess(const WebKit::WebString& origin,
+ bool access) {
+ midi_message_filter()->RequestAccess(origin.utf8(), client_, access ? 1 : 0);
}
void RendererWebMIDIAccessorImpl::sendMIDIData(
« no previous file with comments | « content/renderer/media/renderer_webmidiaccessor_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698