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

Issue 2091553002: Expose ClientSession details to Host Extensions (Closed)

Created:
4 years, 6 months ago by joedow
Modified:
4 years, 5 months ago
Reviewers:
*Sergey Ulanov, Hzj_jie
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@desktop_environment
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new interface to expose ClientSession details to Host Extensions Prior to the introduction of HostExtensions, code running in the ClientSession had access to private state information which it could use to make decisions. Once this code was moved into a HostExtension, it needed to interact with the session via the ClientSessionControl interface. This interface was already being used for other purposes though so it is too easy to pollute it with methods/properties which the other consumers of the interface don't care about. My change adds a new, HostExtension specific interface which wraps the ClientSessionControl interface. It also provides a location to add new methods/properties specifcally for HostExtensions. This change uses this new interface by adding the session Id property and exposing it to Host Extensions. A future CL will update the existing extensions to ue it. BUG=591746 Committed: https://crrev.com/4fa09d9b658fe3a79765eaef2fb58f89bbe84cd6 Cr-Commit-Position: refs/heads/master@{#402288}

Patch Set 1 #

Patch Set 2 : Merging with ToT #

Total comments: 1

Patch Set 3 : Adressing Feedback #

Patch Set 4 : Minor fixup #

Total comments: 6

Patch Set 5 : Adressing feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -46 lines) Patch
M remoting/host/client_session.h View 4 chunks +9 lines, -3 lines 0 comments Download
M remoting/host/client_session.cc View 1 chunk +11 lines, -0 lines 0 comments Download
A remoting/host/client_session_details.h View 1 chunk +31 lines, -0 lines 0 comments Download
M remoting/host/fake_host_extension.h View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/fake_host_extension.cc View 4 chunks +4 lines, -5 lines 0 comments Download
M remoting/host/host_extension.h View 2 chunks +4 lines, -5 lines 0 comments Download
M remoting/host/host_extension_session.h View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/host_extension_session_manager.h View 3 chunks +3 lines, -9 lines 0 comments Download
M remoting/host/host_extension_session_manager.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M remoting/host/host_extension_session_manager_unittest.cc View 6 chunks +6 lines, -7 lines 0 comments Download
M remoting/host/host_mock_objects.h View 2 chunks +13 lines, -1 line 0 comments Download
M remoting/host/host_mock_objects.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/host/security_key/gnubby_extension.h View 2 chunks +4 lines, -1 line 0 comments Download
M remoting/host/security_key/gnubby_extension.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/security_key/gnubby_extension_session.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/security_key/gnubby_extension_session.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/remoting_host_srcs.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Sergey Ulanov
We can just add desktop_session_id() in the ClientSessionControls? ClientSessionControls interface was added specifically to define ...
4 years, 6 months ago (2016-06-23 22:41:29 UTC) #2
joedow
4 years, 6 months ago (2016-06-23 23:42:39 UTC) #5
joedow
The question about using ClientSessionControl is totally legit, I went back and forth a bit ...
4 years, 6 months ago (2016-06-23 23:51:21 UTC) #6
joedow
Discussed with Sergey offline, will incorporate the ClientSessionControl interface into the ClientSessionDetails interface. Will send ...
4 years, 6 months ago (2016-06-24 17:15:39 UTC) #7
joedow
Addressed feedback, PTAL! Thanks! Joe
4 years, 6 months ago (2016-06-24 20:53:55 UTC) #9
joedow
Ping!
4 years, 5 months ago (2016-06-27 17:07:14 UTC) #10
Sergey Ulanov
lgtm https://codereview.chromium.org/2091553002/diff/60001/remoting/host/client_session.cc File remoting/host/client_session.cc (right): https://codereview.chromium.org/2091553002/diff/60001/remoting/host/client_session.cc#newcode435 remoting/host/client_session.cc:435: return desktop_environment_ ? desktop_environment_->GetDesktopSessionId() nit: maybe allow this ...
4 years, 5 months ago (2016-06-27 19:51:30 UTC) #11
joedow
Thanks for the review!! https://codereview.chromium.org/2091553002/diff/60001/remoting/host/client_session.cc File remoting/host/client_session.cc (right): https://codereview.chromium.org/2091553002/diff/60001/remoting/host/client_session.cc#newcode435 remoting/host/client_session.cc:435: return desktop_environment_ ? desktop_environment_->GetDesktopSessionId() On ...
4 years, 5 months ago (2016-06-27 21:07:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2091553002/80001
4 years, 5 months ago (2016-06-27 21:08:24 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-27 21:26:36 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 21:28:05 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4fa09d9b658fe3a79765eaef2fb58f89bbe84cd6
Cr-Commit-Position: refs/heads/master@{#402288}

Powered by Google App Engine
This is Rietveld 408576698