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

Issue 1674583002: [chrome.displaySource] Session notification improvements (Closed)

Created:
4 years, 10 months ago by Mikhail
Modified:
4 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, chromium-apps-reviews_chromium.org, darin (slow to review), ben+mojo_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] Session notification improvements This patch provides several fixes and improvements (simplifications) to the session life cycle notification mechanism: 1) The 'startSession'/'terminateSession' call completion callbacks are invoked when the session is actually started/terminated and in accordance with 'onSessionStarted'/'onSessionTerminated' events propagating (and as per documentation). 2) The notification from the required sink is filtered out in browser process avoiding unneeded IPC calls 3) Methods in mojo interface are renamed in order to improve readability BUG=242107 Committed: https://crrev.com/ef0d3aa8a2e82e6db356e112c236ef0f8a2a8918 Cr-Commit-Position: refs/heads/master@{#374929}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Comments from Antony #

Total comments: 3

Patch Set 3 : Init sCallId #

Messages

Total messages: 20 (8 generated)
Mikhail
PTAL
4 years, 10 months ago (2016-02-05 14:44:58 UTC) #4
shalamov
On 2016/02/05 14:44:58, Mikhail wrote: > PTAL lgtm
4 years, 10 months ago (2016-02-08 11:16:19 UTC) #6
asargent_no_longer_on_chrome
https://codereview.chromium.org/1674583002/diff/40001/extensions/renderer/display_source_custom_bindings.cc File extensions/renderer/display_source_custom_bindings.cc (right): https://codereview.chromium.org/1674583002/diff/40001/extensions/renderer/display_source_custom_bindings.cc#newcode290 extensions/renderer/display_source_custom_bindings.cc:290: CallSessionStartedCallback(sink_id); One question that came to mind seeing this ...
4 years, 10 months ago (2016-02-09 00:07:56 UTC) #7
Mikhail
https://codereview.chromium.org/1674583002/diff/40001/extensions/renderer/display_source_custom_bindings.cc File extensions/renderer/display_source_custom_bindings.cc (right): https://codereview.chromium.org/1674583002/diff/40001/extensions/renderer/display_source_custom_bindings.cc#newcode290 extensions/renderer/display_source_custom_bindings.cc:290: CallSessionStartedCallback(sink_id); On 2016/02/09 00:07:56, Antony Sargent wrote: > One ...
4 years, 10 months ago (2016-02-09 14:26:42 UTC) #8
asargent_no_longer_on_chrome
https://codereview.chromium.org/1674583002/diff/40001/extensions/renderer/display_source_custom_bindings.cc File extensions/renderer/display_source_custom_bindings.cc (right): https://codereview.chromium.org/1674583002/diff/40001/extensions/renderer/display_source_custom_bindings.cc#newcode290 extensions/renderer/display_source_custom_bindings.cc:290: CallSessionStartedCallback(sink_id); On 2016/02/09 14:26:42, Mikhail wrote: > On 2016/02/09 ...
4 years, 10 months ago (2016-02-09 17:04:05 UTC) #9
Mikhail
Thanks for having a look! https://codereview.chromium.org/1674583002/diff/40001/extensions/renderer/display_source_custom_bindings.cc File extensions/renderer/display_source_custom_bindings.cc (right): https://codereview.chromium.org/1674583002/diff/40001/extensions/renderer/display_source_custom_bindings.cc#newcode290 extensions/renderer/display_source_custom_bindings.cc:290: CallSessionStartedCallback(sink_id); On 2016/02/09 17:04:05, ...
4 years, 10 months ago (2016-02-10 15:58:51 UTC) #10
shalamov
https://codereview.chromium.org/1674583002/diff/60001/extensions/common/mojo/wifi_display_session_service.mojom File extensions/common/mojo/wifi_display_session_service.mojom (right): https://codereview.chromium.org/1674583002/diff/60001/extensions/common/mojo/wifi_display_session_service.mojom#newcode13 extensions/common/mojo/wifi_display_session_service.mojom:13: Connect(int32 sink_id, int32 auth_method, string auth_data); auth_method => idl ...
4 years, 10 months ago (2016-02-11 08:56:25 UTC) #11
Mikhail
On 2016/02/11 08:56:25, shalamov wrote: > https://codereview.chromium.org/1674583002/diff/60001/extensions/common/mojo/wifi_display_session_service.mojom > File extensions/common/mojo/wifi_display_session_service.mojom (right): > > https://codereview.chromium.org/1674583002/diff/60001/extensions/common/mojo/wifi_display_session_service.mojom#newcode13 > ...
4 years, 10 months ago (2016-02-11 14:42:58 UTC) #12
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/1674583002/diff/60001/extensions/renderer/display_source_custom_bindings.cc File extensions/renderer/display_source_custom_bindings.cc (right): https://codereview.chromium.org/1674583002/diff/60001/extensions/renderer/display_source_custom_bindings.cc#newcode299 extensions/renderer/display_source_custom_bindings.cc:299: static int sCallId; Consider initializing to 0 just ...
4 years, 10 months ago (2016-02-11 17:14:00 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674583002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674583002/80001
4 years, 10 months ago (2016-02-11 17:54:24 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 10 months ago (2016-02-11 19:42:31 UTC) #18
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:36:24 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ef0d3aa8a2e82e6db356e112c236ef0f8a2a8918
Cr-Commit-Position: refs/heads/master@{#374929}

Powered by Google App Engine
This is Rietveld 408576698