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

Issue 10920019: [Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to ClientSession. (Closed)

Created:
8 years, 3 months ago by alexeypa (please no reviews)
Modified:
8 years, 3 months ago
Reviewers:
Wez, simonmorris
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

[Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to ClientSession. This CL changes the way screen/audio recorders and event executors are managed. New DesktopEnvironmentFactory class is now used by ChromotingHost's owner to specify the kind of desktop environment (or virtual terminal) to be used by the host. Screen/audio recorders and event executors now owned by the ClientSession instance, so there is a separate set of recorders and stubs exists for each authenticated client session. Clients sessions can now be torn dowsn in parallel with the host shuttting down. BUG=134694 TEST=remoting_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155219

Patch Set 1 #

Total comments: 24

Patch Set 2 : - #

Total comments: 10

Patch Set 3 : CR feedback. #

Total comments: 5

Patch Set 4 : rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+889 lines, -674 lines) Patch
M remoting/host/chromoting_host.h View 1 2 3 6 chunks +8 lines, -36 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 2 3 9 chunks +18 lines, -132 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 2 3 8 chunks +48 lines, -25 lines 0 comments Download
M remoting/host/client_session.h View 1 2 3 6 chunks +50 lines, -11 lines 0 comments Download
M remoting/host/client_session.cc View 1 2 3 8 chunks +130 lines, -11 lines 0 comments Download
M remoting/host/client_session_unittest.cc View 1 2 10 chunks +76 lines, -24 lines 0 comments Download
M remoting/host/desktop_environment.h View 1 2 chunks +11 lines, -32 lines 0 comments Download
M remoting/host/desktop_environment.cc View 1 1 chunk +10 lines, -78 lines 0 comments Download
A remoting/host/desktop_environment_factory.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A remoting/host/desktop_environment_factory.cc View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M remoting/host/event_executor.h View 1 chunk +3 lines, -3 lines 0 comments Download
A remoting/host/event_executor_fake.h View 1 chunk +36 lines, -0 lines 0 comments Download
A remoting/host/event_executor_fake.cc View 1 chunk +33 lines, -0 lines 0 comments Download
M remoting/host/event_executor_linux.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M remoting/host/event_executor_mac.cc View 1 2 3 3 chunks +7 lines, -6 lines 0 comments Download
M remoting/host/event_executor_win.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M remoting/host/host_mock_objects.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M remoting/host/host_mock_objects.cc View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M remoting/host/plugin/host_script_object.h View 3 chunks +6 lines, -8 lines 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 2 3 7 chunks +8 lines, -36 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 7 chunks +10 lines, -9 lines 0 comments Download
M remoting/host/screen_recorder_unittest.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
D remoting/host/session_event_executor_win.h View 1 chunk +0 lines, -69 lines 0 comments Download
D remoting/host/session_event_executor_win.cc View 1 chunk +0 lines, -155 lines 0 comments Download
M remoting/host/simple_host_process.cc View 1 2 3 4 chunks +36 lines, -13 lines 0 comments Download
A remoting/host/win/session_desktop_environment_factory.h View 1 chunk +26 lines, -0 lines 0 comments Download
A remoting/host/win/session_desktop_environment_factory.cc View 1 1 chunk +38 lines, -0 lines 0 comments Download
A remoting/host/win/session_event_executor.h View 1 chunk +69 lines, -0 lines 0 comments Download
A remoting/host/win/session_event_executor.cc View 1 chunk +156 lines, -0 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.cc View 1 chunk +1 line, -3 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
alexeypa (please no reviews)
Please take a look. Thanks!
8 years, 3 months ago (2012-08-30 20:54:13 UTC) #1
Wez
I'd prefer that DesktopEnvironmentFactory be a pure interface with a "standard" user-desktop remoting implementation, and ...
8 years, 3 months ago (2012-08-31 18:18:02 UTC) #2
alexeypa (please no reviews)
> I'd prefer that DesktopEnvironmentFactory be a pure interface with a "standard" > user-desktop remoting ...
8 years, 3 months ago (2012-08-31 23:13:30 UTC) #3
alexeypa (please no reviews)
Ping. Wez, if you are going to review it - please let us know. Otherwise, ...
8 years, 3 months ago (2012-09-04 17:44:17 UTC) #4
Wez
On 2012/09/04 17:44:17, alexeypa wrote: > Ping. Wez, if you are going to review it ...
8 years, 3 months ago (2012-09-04 18:41:45 UTC) #5
simonmorris
http://codereview.chromium.org/10920019/diff/1/remoting/host/client_session.h File remoting/host/client_session.h (right): http://codereview.chromium.org/10920019/diff/1/remoting/host/client_session.h#newcode117 remoting/host/client_session.h:117: void StopAndDelete(); Add a comment explaining what this does? ...
8 years, 3 months ago (2012-09-04 18:47:21 UTC) #6
Wez
http://codereview.chromium.org/10920019/diff/10001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/10920019/diff/10001/remoting/host/chromoting_host.cc#newcode77 remoting/host/chromoting_host.cc:77: #if !defined(OS_WIN) On 2012/09/04 18:47:21, simonmorris wrote: > Add ...
8 years, 3 months ago (2012-09-04 20:29:30 UTC) #7
alexeypa (please no reviews)
PTAL. https://chromiumcodereview.appspot.com/10920019/diff/1/remoting/host/client_session.h File remoting/host/client_session.h (right): https://chromiumcodereview.appspot.com/10920019/diff/1/remoting/host/client_session.h#newcode117 remoting/host/client_session.h:117: void StopAndDelete(); On 2012/09/04 18:47:21, simonmorris wrote: > ...
8 years, 3 months ago (2012-09-05 22:53:29 UTC) #8
simonmorris
lgtm
8 years, 3 months ago (2012-09-05 23:25:31 UTC) #9
Wez
LGTM! http://codereview.chromium.org/10920019/diff/1/remoting/host/client_session.h File remoting/host/client_session.h (right): http://codereview.chromium.org/10920019/diff/1/remoting/host/client_session.h#newcode81 remoting/host/client_session.h:81: scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, On 2012/08/31 23:13:30, alexeypa wrote: > ...
8 years, 3 months ago (2012-09-06 00:13:22 UTC) #10
alexeypa (please no reviews)
8 years, 3 months ago (2012-09-06 17:12:02 UTC) #11
https://chromiumcodereview.appspot.com/10920019/diff/9003/remoting/host/clien...
File remoting/host/client_session.cc (right):

https://chromiumcodereview.appspot.com/10920019/diff/9003/remoting/host/clien...
remoting/host/client_session.cc:124: // Create a ScreenRecorder passing the
message loops that it should run on.
On 2012/09/06 00:13:23, Wez wrote:
> nit: ...ScreenRecorder passing... -> ScreenRecorder, passing

Done.

Powered by Google App Engine
This is Rietveld 408576698