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

Issue 1416123005: Implement setSinkId() for media elements without src. (Closed)

Created:
5 years, 1 month ago by Guido Urdaneta
Modified:
5 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, hta - Chromium, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement setSinkId() for media elements without src. BUG=543087 Committed: https://crrev.com/3906a72aa1ee5da057879d7e233304101586e8d9 Cr-Commit-Position: refs/heads/master@{#359405}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rename checkAudioSink and fix #includes #

Patch Set 3 : More jochen's comments #

Total comments: 12

Patch Set 4 : philipj's comments #

Total comments: 1

Patch Set 5 : More jochen's comments #

Total comments: 8

Patch Set 6 : Peter's comments #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Total comments: 21

Patch Set 9 : Peter's comments #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -30 lines) Patch
M components/test_runner/web_frame_test_proxy.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.cc View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/media/audio_output_devices/audio_output_devices-setsinkid.html View 1 2 3 4 5 6 7 8 1 chunk +59 lines, -19 lines 0 comments Download
A third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.cpp View 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp View 1 2 3 4 5 6 7 8 2 chunks +77 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp View 1 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (15 generated)
Guido Urdaneta
Hi, PTAL. This is the second CL from the split of crrev.com/1415343004 in two CLs.
5 years, 1 month ago (2015-10-27 14:56:53 UTC) #2
jochen (gone - plz use gerrit)
+cwilso@ who asked to be more involved in these changes on the intent to implement ...
5 years, 1 month ago (2015-10-28 14:18:49 UTC) #4
Guido Urdaneta
https://codereview.chromium.org/1416123005/diff/1/third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h File third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h (right): https://codereview.chromium.org/1416123005/diff/1/third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h#newcode21 third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h:21: class AudioOutputDeviceClient : public WillBeHeapSupplement<LocalFrame> { On 2015/10/28 14:18:49, ...
5 years, 1 month ago (2015-10-28 15:58:44 UTC) #6
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1416123005/diff/1/third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h File third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h (right): https://codereview.chromium.org/1416123005/diff/1/third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h#newcode21 third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h:21: class AudioOutputDeviceClient : public WillBeHeapSupplement<LocalFrame> { that looks a ...
5 years, 1 month ago (2015-10-28 16:06:47 UTC) #8
haraken
https://codereview.chromium.org/1416123005/diff/1/third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h File third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h (right): https://codereview.chromium.org/1416123005/diff/1/third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h#newcode21 third_party/WebKit/Source/modules/audio_output_devices/AudioOutputDeviceClient.h:21: class AudioOutputDeviceClient : public WillBeHeapSupplement<LocalFrame> { On 2015/10/28 16:06:47, ...
5 years, 1 month ago (2015-10-28 16:15:40 UTC) #9
Guido Urdaneta
> ok, then at least postTask the callback so nobody accidentally can rely on it ...
5 years, 1 month ago (2015-10-28 17:15:22 UTC) #10
Guido Urdaneta
https://codereview.chromium.org/1416123005/diff/1/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/1416123005/diff/1/third_party/WebKit/public/web/WebFrameClient.h#newcode682 third_party/WebKit/public/web/WebFrameClient.h:682: virtual void checkAudioSink(const WebString& sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { ...
5 years, 1 month ago (2015-10-28 17:20:10 UTC) #11
Guido Urdaneta
Adding philipj, who showed interest about this case in the Intent to Ship.
5 years, 1 month ago (2015-10-29 16:27:31 UTC) #13
Guido Urdaneta
Friendly ping :)
5 years, 1 month ago (2015-11-02 11:36:18 UTC) #14
philipj_slow
I've only looked at the tests so far. https://codereview.chromium.org/1416123005/diff/40001/third_party/WebKit/LayoutTests/http/tests/media/audio_output_devices/setsinkid.html File third_party/WebKit/LayoutTests/http/tests/media/audio_output_devices/setsinkid.html (right): https://codereview.chromium.org/1416123005/diff/40001/third_party/WebKit/LayoutTests/http/tests/media/audio_output_devices/setsinkid.html#newcode9 third_party/WebKit/LayoutTests/http/tests/media/audio_output_devices/setsinkid.html:9: <audio ...
5 years, 1 month ago (2015-11-02 12:58:33 UTC) #15
philipj_slow
https://codereview.chromium.org/1416123005/diff/40001/third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp File third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp (right): https://codereview.chromium.org/1416123005/diff/40001/third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp#newcode45 third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp:45: webMediaPlayer->setSinkId(sinkId, WebSecurityOrigin(context->securityOrigin()), callbacks.leakPtr()); Is it correct that it's callbacks.leakPtr() ...
5 years, 1 month ago (2015-11-02 13:04:07 UTC) #16
Guido Urdaneta
https://codereview.chromium.org/1416123005/diff/40001/third_party/WebKit/LayoutTests/http/tests/media/audio_output_devices/setsinkid.html File third_party/WebKit/LayoutTests/http/tests/media/audio_output_devices/setsinkid.html (right): https://codereview.chromium.org/1416123005/diff/40001/third_party/WebKit/LayoutTests/http/tests/media/audio_output_devices/setsinkid.html#newcode9 third_party/WebKit/LayoutTests/http/tests/media/audio_output_devices/setsinkid.html:9: <audio id="testAudio" src="../resources/media-source/webm/test-a-128k-44100Hz-1ch.webm"></audio> On 2015/11/02 12:58:33, philipj wrote: > ...
5 years, 1 month ago (2015-11-02 16:30:04 UTC) #17
blink-reviews
One comment wrt letting promises hang around forever, based on discussions at TPAC: It seems ...
5 years, 1 month ago (2015-11-02 22:41:10 UTC) #18
chromium-reviews
One comment wrt letting promises hang around forever, based on discussions at TPAC: It seems ...
5 years, 1 month ago (2015-11-02 22:41:10 UTC) #19
Guido Urdaneta
Friendly ping to reviewers :)
5 years, 1 month ago (2015-11-04 11:42:24 UTC) #20
Guido Urdaneta
ping
5 years, 1 month ago (2015-11-07 11:44:22 UTC) #21
jochen (gone - plz use gerrit)
lgtm from my pov in general, we need to identify a reviewer that actually understands ...
5 years, 1 month ago (2015-11-07 16:23:45 UTC) #22
Guido Urdaneta
Adding peter@, who has reviewed a lot of WebRTC-related Blink code lately.
5 years, 1 month ago (2015-11-07 17:10:14 UTC) #24
philipj_slow
Just a quick note to not block this on me. I think the functionality itself ...
5 years, 1 month ago (2015-11-07 23:44:35 UTC) #25
Peter Beverloo
https://codereview.chromium.org/1416123005/diff/80001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1416123005/diff/80001/content/renderer/render_frame_impl.cc#newcode5305 content/renderer/render_frame_impl.cc:5305: base::Bind(&RenderFrameImpl::DoCheckIfAudioSinkExistsAndIsAuthorized, There is a really subtle case in which ...
5 years, 1 month ago (2015-11-09 20:05:06 UTC) #26
Guido Urdaneta
https://codereview.chromium.org/1416123005/diff/80001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1416123005/diff/80001/content/renderer/render_frame_impl.cc#newcode5305 content/renderer/render_frame_impl.cc:5305: base::Bind(&RenderFrameImpl::DoCheckIfAudioSinkExistsAndIsAuthorized, On 2015/11/09 20:05:06, Peter Beverloo wrote: > There ...
5 years, 1 month ago (2015-11-10 15:36:52 UTC) #27
Peter Beverloo
lgtm % comments https://codereview.chromium.org/1416123005/diff/140001/components/test_runner/web_frame_test_proxy.h File components/test_runner/web_frame_test_proxy.h (right): https://codereview.chromium.org/1416123005/diff/140001/components/test_runner/web_frame_test_proxy.h#newcode282 components/test_runner/web_frame_test_proxy.h:282: web_callback); nit: web_callbacks (elsewhere too) https://codereview.chromium.org/1416123005/diff/140001/content/renderer/render_frame_impl.h ...
5 years, 1 month ago (2015-11-12 16:45:42 UTC) #28
Guido Urdaneta
https://codereview.chromium.org/1416123005/diff/140001/components/test_runner/web_frame_test_proxy.h File components/test_runner/web_frame_test_proxy.h (right): https://codereview.chromium.org/1416123005/diff/140001/components/test_runner/web_frame_test_proxy.h#newcode282 components/test_runner/web_frame_test_proxy.h:282: web_callback); On 2015/11/12 16:45:42, Peter Beverloo wrote: > nit: ...
5 years, 1 month ago (2015-11-12 18:45:44 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416123005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416123005/160001
5 years, 1 month ago (2015-11-12 18:47:58 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/134133)
5 years, 1 month ago (2015-11-12 20:22:36 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416123005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416123005/160001
5 years, 1 month ago (2015-11-12 20:51:15 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/118052)
5 years, 1 month ago (2015-11-12 20:57:58 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416123005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416123005/180001
5 years, 1 month ago (2015-11-12 21:13:28 UTC) #43
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 1 month ago (2015-11-12 22:14:49 UTC) #44
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 22:15:35 UTC) #45
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3906a72aa1ee5da057879d7e233304101586e8d9
Cr-Commit-Position: refs/heads/master@{#359405}

Powered by Google App Engine
This is Rietveld 408576698