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

Issue 13989003: Replace MediaStreamUIController with MediaStreamUIProxy. (Closed)

Created:
7 years, 8 months ago by Sergey Ulanov
Modified:
7 years, 7 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). TBR=tommi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197222

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+618 lines, -833 lines) Patch
M chrome/browser/media/media_capture_devices_dispatcher.h View 1 2 3 5 chunks +36 lines, -1 line 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 2 3 6 chunks +73 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 +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 2 9 chunks +16 lines, -25 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 27 chunks +114 lines, -190 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager_unittest.cc View 1 2 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 1 chunk +73 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/media_stream_ui_proxy.cc View 1 chunk +174 lines, -0 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.h View 4 chunks +14 lines, -10 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.cc View 1 2 3 4 23 chunks +78 lines, -87 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 2 1 chunk +2 lines, -3 lines 0 comments Download
M content/content_tests.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Sergey Ulanov
More cleanups in the media-stream access request code.
7 years, 8 months ago (2013-04-17 01:27:09 UTC) #1
tommi (sloooow) - chröme
looks great. A couple of nits and one request below. https://codereview.chromium.org/13989003/diff/2001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/13989003/diff/2001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode288 ...
7 years, 8 months ago (2013-04-22 13:22:39 UTC) #2
Sergey Ulanov
https://codereview.chromium.org/13989003/diff/2001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/13989003/diff/2001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode288 chrome/browser/media/media_capture_devices_dispatcher.cc:288: RequestsQueue& queue(pending_requests_[web_contents]); On 2013/04/22 13:22:39, tommi wrote: > nit: ...
7 years, 8 months ago (2013-04-23 05:21:44 UTC) #3
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/13989003/diff/24001/chrome/browser/media/media_capture_devices_dispatcher.h File chrome/browser/media/media_capture_devices_dispatcher.h (right): https://codereview.chromium.org/13989003/diff/24001/chrome/browser/media/media_capture_devices_dispatcher.h#newcode120 chrome/browser/media/media_capture_devices_dispatcher.h:120: PendingAccessRequest(content::MediaStreamRequest request, const & https://codereview.chromium.org/13989003/diff/24001/chrome/browser/media/media_capture_devices_dispatcher.h#newcode121 chrome/browser/media/media_capture_devices_dispatcher.h:121: content::MediaResponseCallback callback); ...
7 years, 8 months ago (2013-04-23 11:20:47 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/13989003/diff/24001/chrome/browser/media/media_capture_devices_dispatcher.h File chrome/browser/media/media_capture_devices_dispatcher.h (right): https://codereview.chromium.org/13989003/diff/24001/chrome/browser/media/media_capture_devices_dispatcher.h#newcode120 chrome/browser/media/media_capture_devices_dispatcher.h:120: PendingAccessRequest(content::MediaStreamRequest request, On 2013/04/23 11:20:47, tommi wrote: > const ...
7 years, 7 months ago (2013-04-29 18:17:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/13989003/30010
7 years, 7 months ago (2013-04-29 18:23:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/13989003/44001
7 years, 7 months ago (2013-04-29 21:49:14 UTC) #7
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=247
7 years, 7 months ago (2013-04-29 21:57:33 UTC) #8
Sergey Ulanov
On 2013/04/29 21:57:33, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 7 months ago (2013-04-30 01:47:39 UTC) #9
Sergey Ulanov
7 years, 7 months ago (2013-04-30 01:53:37 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 manually as r197222 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698