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

Issue 493453004: app_shell: Add audio and video capture support (Closed)

Created:
6 years, 4 months ago by James Cook
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

app_shell: Add audio and video capture support This allows HTML5/WebRTC audio and video capture to work inside apps. * Apps in app_shell are given access to the first available camera and microphone via WebContentsDelegate:: ProcessMediaAccessRequest(). * Introduce media_capture_util so code can be shared between ShellExtensionHostDelegate (for audio capture from background pages) and ShellAppWindow (for normal windows). * Extract ShellExtensionHostDelegate into its own file because it's a little too big to sit where it is. BUG=404299 TEST=manual, see app attached to bug Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291534

Patch Set 1 #

Patch Set 2 : (video-capture) audio and video work #

Total comments: 3

Patch Set 3 : (video-capture) rebase #

Patch Set 4 : (video-capture) check capture permissions #

Total comments: 1

Patch Set 5 : (video-capture) fix athena build #

Total comments: 6

Patch Set 6 : (video-capture) review comments #

Patch Set 7 : (video-capture) rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -128 lines) Patch
M athena/main/athena_app_window_controller.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M athena/main/athena_app_window_controller.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 2 chunks +0 lines, -35 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_provider.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/_permission_features.json View 1 2 3 2 chunks +35 lines, -0 lines 0 comments Download
M extensions/common/permissions/extensions_api_permissions.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/extensions_strings.grd View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M extensions/shell/app_shell.gyp View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/shell/browser/api/shell/shell_api.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M extensions/shell/browser/default_shell_app_window_controller.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/shell/browser/default_shell_app_window_controller.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
A extensions/shell/browser/media_capture_util.h View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A extensions/shell/browser/media_capture_util.cc View 1 2 3 4 5 1 chunk +70 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_app_window.h View 1 2 3 4 chunks +18 lines, -4 lines 0 comments Download
M extensions/shell/browser/shell_app_window.cc View 1 2 3 4 chunks +18 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_app_window_controller.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_desktop_controller.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_desktop_controller.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
A + extensions/shell/browser/shell_extension_host_delegate.h View 1 2 chunks +15 lines, -11 lines 0 comments Download
A extensions/shell/browser/shell_extension_host_delegate.cc View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_extensions_browser_client.cc View 1 2 chunks +1 line, -47 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
James Cook
derat, PTAL https://codereview.chromium.org/493453004/diff/20001/extensions/shell/browser/media_capture_util.cc File extensions/shell/browser/media_capture_util.cc (right): https://codereview.chromium.org/493453004/diff/20001/extensions/shell/browser/media_capture_util.cc#newcode18 extensions/shell/browser/media_capture_util.cc:18: // See also Chrome's MediaCaptureDevicesDispatcher. I looked ...
6 years, 4 months ago (2014-08-20 18:17:16 UTC) #1
Daniel Erat
lgtm! you might want to ask a media person to glance at it too, though.
6 years, 4 months ago (2014-08-20 21:09:51 UTC) #2
James Cook
xians, PTAL at extensions/shell/browser/media_capture_util.*
6 years, 4 months ago (2014-08-20 21:25:26 UTC) #3
James Cook
On 2014/08/20 21:25:26, James Cook wrote: > xians, PTAL at extensions/shell/browser/media_capture_util.* xians, friendly ping?
6 years, 4 months ago (2014-08-21 23:14:02 UTC) #4
Daniel Erat
On 2014/08/21 23:14:02, James Cook wrote: > On 2014/08/20 21:25:26, James Cook wrote: > > ...
6 years, 4 months ago (2014-08-21 23:15:40 UTC) #5
no longer working on chromium
https://codereview.chromium.org/493453004/diff/20001/extensions/shell/browser/shell_extension_host_delegate.cc File extensions/shell/browser/shell_extension_host_delegate.cc (right): https://codereview.chromium.org/493453004/diff/20001/extensions/shell/browser/shell_extension_host_delegate.cc#newcode51 extensions/shell/browser/shell_extension_host_delegate.cc:51: media_capture_util::GrantMediaStreamRequestWithFirstDevice( I am not very sure, but shouldn't you ...
6 years, 4 months ago (2014-08-22 13:09:53 UTC) #6
James Cook
On 2014/08/22 13:09:53, xians1 wrote: > https://codereview.chromium.org/493453004/diff/20001/extensions/shell/browser/shell_extension_host_delegate.cc > File extensions/shell/browser/shell_extension_host_delegate.cc (right): > > https://codereview.chromium.org/493453004/diff/20001/extensions/shell/browser/shell_extension_host_delegate.cc#newcode51 > ...
6 years, 4 months ago (2014-08-22 15:39:12 UTC) #7
James Cook
derat, please take another look at extensions/shell. I had to plumb an Extension* into the ...
6 years, 4 months ago (2014-08-22 16:52:14 UTC) #8
Daniel Erat
lgtm for extensions/shell https://codereview.chromium.org/493453004/diff/60001/extensions/shell/browser/shell_app_window.h File extensions/shell/browser/shell_app_window.h (right): https://codereview.chromium.org/493453004/diff/60001/extensions/shell/browser/shell_app_window.h#newcode48 extensions/shell/browser/shell_app_window.h:48: gfx::Size initial_size); nit: const ref, maybe
6 years, 4 months ago (2014-08-22 17:09:55 UTC) #9
oshima
athena/ lgtm
6 years, 4 months ago (2014-08-22 17:13:59 UTC) #10
James Cook
yoz, can I get OWNERS for chrome/common/extensions? I had to move a permissions constant and ...
6 years, 4 months ago (2014-08-22 17:16:57 UTC) #11
no longer working on chromium
lgtm with two nits and one question. Thanks for fixing it. https://codereview.chromium.org/493453004/diff/80001/extensions/shell/browser/media_capture_util.cc File extensions/shell/browser/media_capture_util.cc (right): ...
6 years, 4 months ago (2014-08-22 19:22:27 UTC) #12
Yoyo Zhou
On 2014/08/22 17:16:57, James Cook wrote: > yoz, can I get OWNERS for chrome/common/extensions? I ...
6 years, 4 months ago (2014-08-22 19:39:26 UTC) #13
James Cook
xians, thanks for the late night review! https://codereview.chromium.org/493453004/diff/80001/extensions/shell/browser/media_capture_util.cc File extensions/shell/browser/media_capture_util.cc (right): https://codereview.chromium.org/493453004/diff/80001/extensions/shell/browser/media_capture_util.cc#newcode11 extensions/shell/browser/media_capture_util.cc:11: using content::MediaCaptureDevices; ...
6 years, 4 months ago (2014-08-22 20:11:00 UTC) #14
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 4 months ago (2014-08-22 20:31:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/493453004/120001
6 years, 4 months ago (2014-08-22 20:31:45 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 21:42:10 UTC) #17
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 22:28:37 UTC) #18
Message was sent while issue was closed.
Committed patchset #7 (120001) as 291534

Powered by Google App Engine
This is Rietveld 408576698