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

Issue 1471243002: chrome.displaySource custom bindings (Closed)

Created:
5 years ago by Mikhail
Modified:
5 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chrome.displaySource custom bindings This patch introduces custom bindings for 'chrome.displaySource' API. These are bindings for 'startSession', 'terminateSession' methods and for the 'onSessionStarted', 'onSessionTerminated', 'onSessionErrorOccured' events. The bindings should belong to render process (i.e. be custom) as: 1) they accept dom objects arguments (MediaStreamTrack) 2) for security reasons: to keep all protocols handling within sandbox The abstract 'DisplaySourceSession' class is added to be implemented by the 'chrome.displaySource' API backends. BUG=242107 Committed: https://crrev.com/79486f1c04861a577489fa63b1f82342aaee095b Cr-Commit-Position: refs/heads/master@{#364045}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Comments from Antony #

Total comments: 1

Patch Set 3 : Report errors via 'chrome.runtime.lastError' #

Total comments: 10

Patch Set 4 : Fixing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -3 lines) Patch
M extensions/common/api/display_source.idl View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
M extensions/extensions.gypi View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
A + extensions/renderer/api/display_source/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/renderer/api/display_source/display_source_session.h View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download
A extensions/renderer/api/display_source/display_source_session.cc View 1 chunk +37 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
A extensions/renderer/display_source_custom_bindings.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A extensions/renderer/display_source_custom_bindings.cc View 1 2 3 1 chunk +258 lines, -0 lines 0 comments Download
A extensions/renderer/resources/display_source_custom_bindings.js View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M extensions/renderer/resources/extensions_renderer_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/test/data/api_test/display_source/api/background.js View 1 2 1 chunk +20 lines, -1 line 0 comments Download

Messages

Total messages: 40 (19 generated)
Mikhail
PTAL
5 years ago (2015-11-25 18:25:20 UTC) #5
asargent_no_longer_on_chrome
https://codereview.chromium.org/1471243002/diff/40001/extensions/renderer/api/display_source/display_source_session.h File extensions/renderer/api/display_source/display_source_session.h (right): https://codereview.chromium.org/1471243002/diff/40001/extensions/renderer/api/display_source/display_source_session.h#newcode38 extensions/renderer/api/display_source/display_source_session.h:38: // Starts the session. optional nit: consider adding an ...
5 years ago (2015-11-26 00:50:07 UTC) #6
Mikhail
Thanks for review! https://codereview.chromium.org/1471243002/diff/40001/extensions/renderer/api/display_source/display_source_session.h File extensions/renderer/api/display_source/display_source_session.h (right): https://codereview.chromium.org/1471243002/diff/40001/extensions/renderer/api/display_source/display_source_session.h#newcode38 extensions/renderer/api/display_source/display_source_session.h:38: // Starts the session. On 2015/11/26 ...
5 years ago (2015-11-26 13:00:47 UTC) #7
asargent_no_longer_on_chrome
+rdevlin.cronin to get his opinion on the question of error handling in display_source_custom_bindings.cc https://codereview.chromium.org/1471243002/diff/40001/extensions/renderer/display_source_custom_bindings.cc File ...
5 years ago (2015-12-01 01:54:23 UTC) #9
Mikhail
On 2015/12/01 01:54:23, Antony Sargent wrote: > +rdevlin.cronin to get his opinion on the question ...
5 years ago (2015-12-01 13:56:47 UTC) #10
Devlin
https://codereview.chromium.org/1471243002/diff/40001/extensions/renderer/display_source_custom_bindings.cc File extensions/renderer/display_source_custom_bindings.cc (right): https://codereview.chromium.org/1471243002/diff/40001/extensions/renderer/display_source_custom_bindings.cc#newcode84 extensions/renderer/display_source_custom_bindings.cc:84: v8::String::NewFromUtf8(isolate, kInvalidSinkIdArg))); On 2015/12/01 01:54:23, Antony Sargent wrote: > ...
5 years ago (2015-12-01 17:48:37 UTC) #11
Mikhail
On 2015/12/01 17:48:37, Devlin wrote: > > Devlin, do you have a preference here? > ...
5 years ago (2015-12-02 19:49:58 UTC) #12
Mikhail
On 2015/12/02 19:49:58, Mikhail wrote: > On 2015/12/01 17:48:37, Devlin wrote: > > > Devlin, ...
5 years ago (2015-12-07 08:27:23 UTC) #13
asargent_no_longer_on_chrome
lgtm with a couple of minor things to fix before checking in https://codereview.chromium.org/1471243002/diff/80001/extensions/renderer/api/display_source/display_source_session.h File extensions/renderer/api/display_source/display_source_session.h ...
5 years ago (2015-12-07 21:47:49 UTC) #14
Mikhail
thanks! https://codereview.chromium.org/1471243002/diff/80001/extensions/renderer/api/display_source/display_source_session.h File extensions/renderer/api/display_source/display_source_session.h (right): https://codereview.chromium.org/1471243002/diff/80001/extensions/renderer/api/display_source/display_source_session.h#newcode23 extensions/renderer/api/display_source/display_source_session.h:23: base::Callback<void(int, DisplaySourceErrorType, const std::string&)>; On 2015/12/07 21:47:49, Antony ...
5 years ago (2015-12-08 07:44:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471243002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471243002/100001
5 years ago (2015-12-08 07:45:40 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/141406)
5 years ago (2015-12-08 08:47:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471243002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471243002/120001
5 years ago (2015-12-08 11:27:05 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/152196)
5 years ago (2015-12-08 12:03:27 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471243002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471243002/120001
5 years ago (2015-12-08 13:26:40 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/139712)
5 years ago (2015-12-08 14:00:14 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471243002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471243002/120001
5 years ago (2015-12-08 15:04:43 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/98648)
5 years ago (2015-12-08 15:36:57 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471243002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471243002/120001
5 years ago (2015-12-09 08:59:36 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:120001)
5 years ago (2015-12-09 12:09:47 UTC) #38
commit-bot: I haz the power
5 years ago (2015-12-09 12:10:40 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/79486f1c04861a577489fa63b1f82342aaee095b
Cr-Commit-Position: refs/heads/master@{#364045}

Powered by Google App Engine
This is Rietveld 408576698