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

Issue 16342002: Replace MediaStreamUIController with MediaStreamUIProxy. (Closed)

Created:
7 years, 6 months ago by Sergey Ulanov
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org
Visibility:
Public.

Description

Replace MediaStreamUIController with MediaStreamUIProxy. Previously a single object MediaStreamUIController was used to control UI for all streams. Replaced it with a per-stream MediaStreamUIProxy that simplifies code in many places. Also moved media request queueing logic from content layer to chrome. Now different types of requests may be queued differently (e.g. there is no reason to block screen capture requests on webcam infobar). This change was previously landed in 197222 and reverted in 197242 TBR=tommi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204044 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204808

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+927 lines, -834 lines) Patch
M chrome/browser/media/media_capture_devices_dispatcher.h View 1 2 3 4 5 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 2 3 4 6 chunks +90 lines, -3 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 3 chunks +12 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 4 chunks +7 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 9 chunks +17 lines, -25 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 4 5 27 chunks +133 lines, -190 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager_unittest.cc View 6 chunks +20 lines, -17 lines 0 comments Download
D content/browser/renderer_host/media/media_stream_settings_requester.h View 1 chunk +0 lines, -39 lines 0 comments Download
D content/browser/renderer_host/media/media_stream_ui_controller.h View 1 chunk +0 lines, -106 lines 0 comments Download
D content/browser/renderer_host/media/media_stream_ui_controller.cc View 1 chunk +0 lines, -336 lines 0 comments Download
A content/browser/renderer_host/media/media_stream_ui_proxy.h View 1 2 3 4 5 6 1 chunk +88 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/media_stream_ui_proxy.cc View 1 2 3 4 5 6 1 chunk +216 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc View 1 2 3 4 5 6 7 1 chunk +213 lines, -0 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.h View 1 2 3 4 4 chunks +14 lines, -10 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.cc View 1 2 3 4 24 chunks +79 lines, -88 lines 0 comments Download
M content/common/media/media_stream_options.h View 2 chunks +0 lines, -6 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +2 lines, -3 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Sergey Ulanov
I still don't know what in this CL causes the tests on Mac Lion builds ...
7 years, 6 months ago (2013-06-04 02:45:17 UTC) #1
Sergey Ulanov
+vrk@, while Tommi is on OOO. Victoria, this CL has been already reviewed at https://codereview.chromium.org/13989003 ...
7 years, 6 months ago (2013-06-04 17:44:24 UTC) #2
vrk (LEFT CHROMIUM)
lgtm
7 years, 6 months ago (2013-06-04 20:57:09 UTC) #3
Sergey Ulanov
Committed patchset #4 manually as r204044 (presubmit successful).
7 years, 6 months ago (2013-06-04 21:07:23 UTC) #4
Sergey Ulanov
This change was reverted because it caused failures in webrtc pyauto tests. In Patch Set ...
7 years, 6 months ago (2013-06-05 21:15:41 UTC) #5
Sergey Ulanov
+miu@ Yuri, since you are familiar with this code, can you please review the diff ...
7 years, 6 months ago (2013-06-06 19:29:41 UTC) #6
miu
https://codereview.chromium.org/16342002/diff/70001/content/browser/renderer_host/media/media_stream_ui_proxy.cc File content/browser/renderer_host/media/media_stream_ui_proxy.cc (right): https://codereview.chromium.org/16342002/diff/70001/content/browser/renderer_host/media/media_stream_ui_proxy.cc#newcode66 content/browser/renderer_host/media/media_stream_ui_proxy.cc:66: render_delegate_ = host->GetDelegate(); In this "set once lazily" scheme, ...
7 years, 6 months ago (2013-06-06 20:03:01 UTC) #7
Sergey Ulanov
https://codereview.chromium.org/16342002/diff/70001/content/browser/renderer_host/media/media_stream_ui_proxy.cc File content/browser/renderer_host/media/media_stream_ui_proxy.cc (right): https://codereview.chromium.org/16342002/diff/70001/content/browser/renderer_host/media/media_stream_ui_proxy.cc#newcode66 content/browser/renderer_host/media/media_stream_ui_proxy.cc:66: render_delegate_ = host->GetDelegate(); On 2013/06/06 20:03:01, Yuri wrote: > ...
7 years, 6 months ago (2013-06-06 21:40:03 UTC) #8
miu
lgtm https://codereview.chromium.org/16342002/diff/70001/content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc File content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc (right): https://codereview.chromium.org/16342002/diff/70001/content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc#newcode83 content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc:83: return On 2013/06/06 21:40:03, Sergey Ulanov wrote: > ...
7 years, 6 months ago (2013-06-06 23:05:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/16342002/21
7 years, 6 months ago (2013-06-06 23:15:01 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-07 00:02:30 UTC) #11
Sergey Ulanov
https://codereview.chromium.org/16342002/diff/70001/content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc File content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc (right): https://codereview.chromium.org/16342002/diff/70001/content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc#newcode83 content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc:83: return On 2013/06/06 23:05:23, Yuri wrote: > On 2013/06/06 ...
7 years, 6 months ago (2013-06-07 00:37:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/16342002/99002
7 years, 6 months ago (2013-06-07 00:38:30 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=159115
7 years, 6 months ago (2013-06-07 04:29:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/16342002/99002
7 years, 6 months ago (2013-06-07 06:56:04 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-07 13:12:56 UTC) #16
Message was sent while issue was closed.
Change committed as 204808

Powered by Google App Engine
This is Rietveld 408576698