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

Issue 1095393004: Refactor: Make MediaCaptureDevicesDispatcher have pluggable handlers. (Closed)

Created:
5 years, 8 months ago by changbin
Modified:
5 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, posciak+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, chromium-apps-reviews_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactor: Make MediaCaptureDevicesDispatcher have pluggable handlers. Codes of function ProcessMediaAccessRequest() are all located under class MediaCaptureDevicesDispatcher at the moment, as a result, MediaCaptureDevicesDispatcher looks quite heavy. Add MediaAccessHandler interface for pluggable handlers for different types of media requests. And move all logics of handling different types of media requests to separate implementation classes. BUG=386012 Committed: https://crrev.com/43fd86763b002480899f10184fbaba6c9581d889 Cr-Commit-Position: refs/heads/master@{#333450}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Update #

Total comments: 15

Patch Set 3 : Rebase and address review comments of ps#2 #

Total comments: 28

Patch Set 4 : Remove ENABLE_EXTENSIONS checks from DesktopCapture & TabCapture. #

Total comments: 6

Patch Set 5 : Rebase & Bug fix. #

Patch Set 6 : Fix tryjob error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1162 lines, -802 lines) Patch
A chrome/browser/media/desktop_capture_access_handler.h View 1 2 3 4 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/media/desktop_capture_access_handler.cc View 1 2 3 4 5 1 chunk +386 lines, -0 lines 0 comments Download
A chrome/browser/media/extension_media_access_handler.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/media/extension_media_access_handler.cc View 1 2 1 chunk +147 lines, -0 lines 0 comments Download
A chrome/browser/media/media_access_handler.h View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.h View 1 2 3 4 6 chunks +8 lines, -71 lines 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 2 3 4 5 11 chunks +60 lines, -731 lines 0 comments Download
A chrome/browser/media/permission_bubble_media_access_handler.h View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/media/permission_bubble_media_access_handler.cc View 1 2 3 1 chunk +235 lines, -0 lines 0 comments Download
A chrome/browser/media/tab_capture_access_handler.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/media/tab_capture_access_handler.cc View 1 2 3 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (7 generated)
changbin
Hi, PTAL. Thanks!
5 years, 8 months ago (2015-04-24 06:53:34 UTC) #2
Lei Zhang
sergeyu@ should be the primary reviewer on this. https://codereview.chromium.org/1095393004/diff/1/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/1095393004/diff/1/chrome/chrome_browser.gypi#newcode3188 chrome/chrome_browser.gypi:3188: 'browser/media/extension_media_access_handler.cc', ...
5 years, 8 months ago (2015-04-24 18:39:17 UTC) #3
Sergey Ulanov
Thanks for working on this stuff! https://codereview.chromium.org/1095393004/diff/1/chrome/browser/media/desktop_capture_access_handler.h File chrome/browser/media/desktop_capture_access_handler.h (right): https://codereview.chromium.org/1095393004/diff/1/chrome/browser/media/desktop_capture_access_handler.h#newcode1 chrome/browser/media/desktop_capture_access_handler.h:1: // Copyright (c) ...
5 years, 8 months ago (2015-04-24 22:43:51 UTC) #4
changbin
Thanks for your comments:) Update the CL, PTAL. https://codereview.chromium.org/1095393004/diff/1/chrome/browser/media/desktop_capture_access_handler.h File chrome/browser/media/desktop_capture_access_handler.h (right): https://codereview.chromium.org/1095393004/diff/1/chrome/browser/media/desktop_capture_access_handler.h#newcode1 chrome/browser/media/desktop_capture_access_handler.h:1: // ...
5 years, 7 months ago (2015-04-29 05:24:35 UTC) #5
changbin
ping. Please take a look when you have time. thanks!
5 years, 7 months ago (2015-05-05 01:27:53 UTC) #6
Sergey Ulanov
On 2015/05/05 01:27:53, changbin wrote: > ping. > Please take a look when you have ...
5 years, 7 months ago (2015-05-06 16:54:11 UTC) #7
Sergey Ulanov
The main issue is that CheckMediaAccessPermission() logic belongs in MediaAccessHandler too. https://codereview.chromium.org/1095393004/diff/1/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): ...
5 years, 7 months ago (2015-05-07 01:05:49 UTC) #8
changbin
sergeyu@, sorry for replying late due to I was on business travel. I have updated ...
5 years, 7 months ago (2015-05-22 05:10:59 UTC) #9
changbin
ping. please take a look when you have time:)
5 years, 7 months ago (2015-05-28 01:11:46 UTC) #10
Sergey Ulanov
On 2015/05/28 01:11:46, changbin wrote: > ping. > please take a look when you have ...
5 years, 6 months ago (2015-06-01 22:08:51 UTC) #11
Sergey Ulanov
Looks mostly good now, but I have more comments. Thanks! https://codereview.chromium.org/1095393004/diff/40001/chrome/browser/media/desktop_capture_access_handler.cc File chrome/browser/media/desktop_capture_access_handler.cc (right): https://codereview.chromium.org/1095393004/diff/40001/chrome/browser/media/desktop_capture_access_handler.cc#newcode29 ...
5 years, 6 months ago (2015-06-01 23:39:18 UTC) #12
changbin
Update CL to address review comments of PS #3, please take another look when you ...
5 years, 6 months ago (2015-06-02 14:20:10 UTC) #15
Sergey Ulanov
Please fix the bug in MediaCaptureDevicesDispatcher::UpdateMediaRequestStateOnUIThread(). Otherwise looks good. https://codereview.chromium.org/1095393004/diff/100001/chrome/browser/media/desktop_capture_access_handler.cc File chrome/browser/media/desktop_capture_access_handler.cc (right): https://codereview.chromium.org/1095393004/diff/100001/chrome/browser/media/desktop_capture_access_handler.cc#newcode170 chrome/browser/media/desktop_capture_access_handler.cc:170: ...
5 years, 6 months ago (2015-06-03 22:31:58 UTC) #16
changbin
PTAL. sergeyu@, can you help to kick off the tryjob if the patch looks good ...
5 years, 6 months ago (2015-06-05 06:40:34 UTC) #17
Sergey Ulanov
lgtm
5 years, 6 months ago (2015-06-08 19:04:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1095393004/120001
5 years, 6 months ago (2015-06-08 19:06:37 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/79111) android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 6 months ago (2015-06-08 19:21:41 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1095393004/140001
5 years, 6 months ago (2015-06-09 03:12:53 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 6 months ago (2015-06-09 05:13:59 UTC) #26
commit-bot: I haz the power
5 years, 6 months ago (2015-06-09 05:15:00 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/43fd86763b002480899f10184fbaba6c9581d889
Cr-Commit-Position: refs/heads/master@{#333450}

Powered by Google App Engine
This is Rietveld 408576698