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

Issue 1602703005: Web MIDI: Ask permissions of the content layer always (Closed)

Created:
4 years, 11 months ago by Takashi Toyoshima
Modified:
4 years, 11 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, toyoshim+midi_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web MIDI: Ask permissions of the content layer always Originally only sysex permission requests are exposed to the content layer, but with this series of patches, all Web MIDI requests will be exposed to the content layer so that each chromium embedder can decide how to decide several permissions. First of all, expose all requests outside Blink. Changes for the permission service will follow as a separate patch. BUG=535181 Committed: https://crrev.com/71d21daf1f3b427b7dca74a536566def4a27e39e Cr-Commit-Position: refs/heads/master@{#372044}

Patch Set 1 #

Patch Set 2 : split changes outside blink #

Total comments: 15

Patch Set 3 : review #10 and #11, rebase PS will follow #

Total comments: 1

Patch Set 4 : rebase #

Patch Set 5 : revert layout_test_message_filter.cc that should be in the next CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -52 lines) Patch
M content/renderer/media/midi_dispatcher.h View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M content/renderer/media/midi_dispatcher.cc View 1 2 3 4 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.cpp View 1 2 3 4 5 chunks +9 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIClient.h View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIController.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIController.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIOptions.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/MIDIClientProxy.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/MIDIClientProxy.cpp View 1 2 3 2 chunks +11 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebMIDIPermissionRequest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.h View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
A third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
Takashi Toyoshima
this is ready for review, but it might be better to start after public/*/modules/webmidi changes ...
4 years, 11 months ago (2016-01-20 10:52:33 UTC) #4
mlamouri (slow - plz ping)
https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc File content/renderer/media/midi_dispatcher.cc (right): https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc#newcode31 content/renderer/media/midi_dispatcher.cc:31: return WebMIDIPermissionRequest(request).setIsAllowed(true); What about doing: PermissionName permission_name = options.sysex ...
4 years, 11 months ago (2016-01-21 11:50:57 UTC) #6
Takashi Toyoshima
https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc File content/renderer/media/midi_dispatcher.cc (right): https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc#newcode31 content/renderer/media/midi_dispatcher.cc:31: return WebMIDIPermissionRequest(request).setIsAllowed(true); Thank you for jumping in! I thought ...
4 years, 11 months ago (2016-01-22 04:33:22 UTC) #7
Takashi Toyoshima
https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc File content/renderer/media/midi_dispatcher.cc (right): https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc#newcode31 content/renderer/media/midi_dispatcher.cc:31: return WebMIDIPermissionRequest(request).setIsAllowed(true); Some additional notes for this: - PERMISSION_NAME_MIDI ...
4 years, 11 months ago (2016-01-22 07:30:01 UTC) #8
mlamouri (slow - plz ping)
On 2016/01/22 at 07:30:01, toyoshim wrote: > https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc > File content/renderer/media/midi_dispatcher.cc (right): > > https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc#newcode31 ...
4 years, 11 months ago (2016-01-22 11:03:21 UTC) #9
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/1602703005/diff/20001/third_party/WebKit/public/web/WebMIDIClient.h File third_party/WebKit/public/web/WebMIDIClient.h (right): https://codereview.chromium.org/1602703005/diff/20001/third_party/WebKit/public/web/WebMIDIClient.h#newcode34 third_party/WebKit/public/web/WebMIDIClient.h:34: #include "WebMIDIOptions.h" nit: I think you can make ...
4 years, 11 months ago (2016-01-22 11:54:43 UTC) #10
yhirano
https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc File content/renderer/media/midi_dispatcher.cc (right): https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc#newcode10 content/renderer/media/midi_dispatcher.cc:10: #include "third_party/WebKit/public/platform/WebString.h" +#include ".../WebMidiOptions.h" https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.h File content/renderer/media/midi_dispatcher.h (right): https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.h#newcode15 ...
4 years, 11 months ago (2016-01-25 11:20:16 UTC) #11
Takashi Toyoshima
https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc File content/renderer/media/midi_dispatcher.cc (right): https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.cc#newcode10 content/renderer/media/midi_dispatcher.cc:10: #include "third_party/WebKit/public/platform/WebString.h" On 2016/01/25 11:20:16, yhirano wrote: > +#include ...
4 years, 11 months ago (2016-01-26 07:24:53 UTC) #12
Takashi Toyoshima
https://codereview.chromium.org/1602703005/diff/40001/content/renderer/media/midi_dispatcher.cc File content/renderer/media/midi_dispatcher.cc (right): https://codereview.chromium.org/1602703005/diff/40001/content/renderer/media/midi_dispatcher.cc#newcode38 content/renderer/media/midi_dispatcher.cc:38: PermissionName permission_name = Oops, I mistakenly merge this change ...
4 years, 11 months ago (2016-01-26 08:08:03 UTC) #13
Takashi Toyoshima
yhirano: PTAL.
4 years, 11 months ago (2016-01-26 12:09:46 UTC) #15
yhirano
lgtm https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.h File content/renderer/media/midi_dispatcher.h (right): https://codereview.chromium.org/1602703005/diff/20001/content/renderer/media/midi_dispatcher.h#newcode15 content/renderer/media/midi_dispatcher.h:15: class WebMIDIPermissionRequest; On 2016/01/26 07:24:52, Takashi Toyoshima wrote: ...
4 years, 11 months ago (2016-01-27 14:14:56 UTC) #16
Takashi Toyoshima
tkent@chromium.org: Please review changes in WebKit/Source/web
4 years, 11 months ago (2016-01-28 06:10:36 UTC) #18
tkent
lgtm
4 years, 11 months ago (2016-01-28 06:24:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1602703005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1602703005/80001
4 years, 11 months ago (2016-01-28 06:29:30 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-28 07:47:19 UTC) #24
commit-bot: I haz the power
Failed to apply the patch.
4 years, 11 months ago (2016-01-28 07:47:44 UTC) #25
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/71d21daf1f3b427b7dca74a536566def4a27e39e Cr-Commit-Position: refs/heads/master@{#372044}
4 years, 11 months ago (2016-01-28 07:48:36 UTC) #27
Takashi Toyoshima
4 years, 11 months ago (2016-01-28 07:57:03 UTC) #28
Message was sent while issue was closed.
hum.... CQ says something scary, but landed.
If this causes a build break, and someone notice it before I notice. Please feel
free to revert this. (I'll be on train for a while)

Powered by Google App Engine
This is Rietveld 408576698