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

Issue 7312019: Chromoting: Move host input and window mgmt into DesktopEnvironment (Closed)

Created:
9 years, 5 months ago by garykac
Modified:
9 years, 5 months ago
Reviewers:
Sergey Ulanov, Jamie
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Chromoting: Move host input and window mgmt into DesktopEnvironment Hide details of window management and continue timers in the DesktopEnvironment class and expose OnConnect, OnLastDisconnect and OnPause methods. Move all host input monitor code into DesktopEnvironment as well. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91764

Patch Set 1 #

Total comments: 5

Patch Set 2 : review comments + fix unittests #

Patch Set 3 : merge #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -129 lines) Patch
M remoting/host/chromoting_host.h View 1 2 3 chunks +0 lines, -20 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 2 9 chunks +8 lines, -97 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/desktop_environment.h View 1 3 chunks +53 lines, -7 lines 1 comment Download
M remoting/host/desktop_environment.cc View 1 chunk +112 lines, -3 lines 1 comment Download
M remoting/host/simple_host_process.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
garykac
9 years, 5 months ago (2011-07-07 00:09:18 UTC) #1
Jamie
LGTM, assuming there's a good reason for the ref-counting. http://codereview.chromium.org/7312019/diff/1/remoting/host/desktop_environment.h File remoting/host/desktop_environment.h (right): http://codereview.chromium.org/7312019/diff/1/remoting/host/desktop_environment.h#newcode27 remoting/host/desktop_environment.h:27: ...
9 years, 5 months ago (2011-07-07 00:26:48 UTC) #2
Sergey Ulanov
http://codereview.chromium.org/7312019/diff/1/remoting/host/chromoting_host.h File remoting/host/chromoting_host.h (right): http://codereview.chromium.org/7312019/diff/1/remoting/host/chromoting_host.h#newcode189 remoting/host/chromoting_host.h:189: scoped_ptr<DesktopEnvironment> desktop_environment_; scoped_refptr? http://codereview.chromium.org/7312019/diff/1/remoting/host/desktop_environment.h File remoting/host/desktop_environment.h (right): http://codereview.chromium.org/7312019/diff/1/remoting/host/desktop_environment.h#newcode27 remoting/host/desktop_environment.h:27: ...
9 years, 5 months ago (2011-07-07 00:33:17 UTC) #3
garykac
http://codereview.chromium.org/7312019/diff/1/remoting/host/chromoting_host.h File remoting/host/chromoting_host.h (right): http://codereview.chromium.org/7312019/diff/1/remoting/host/chromoting_host.h#newcode189 remoting/host/chromoting_host.h:189: scoped_ptr<DesktopEnvironment> desktop_environment_; On 2011/07/07 00:33:17, sergeyu wrote: > scoped_refptr? ...
9 years, 5 months ago (2011-07-07 20:38:09 UTC) #4
Sergey Ulanov
9 years, 5 months ago (2011-07-08 23:12:24 UTC) #5
http://codereview.chromium.org/7312019/diff/7002/remoting/host/desktop_enviro...
File remoting/host/desktop_environment.cc (right):

http://codereview.chromium.org/7312019/diff/7002/remoting/host/desktop_enviro...
remoting/host/desktop_environment.cc:86: if (!context_->IsUIThread()) {
I was suggesting that we change ChromotingHost to make sure that it calls this
code only from UI thread. This code would just DCHECK() if it is called from the
wrong thread?

http://codereview.chromium.org/7312019/diff/7002/remoting/host/desktop_enviro...
File remoting/host/desktop_environment.h (right):

http://codereview.chromium.org/7312019/diff/7002/remoting/host/desktop_enviro...
remoting/host/desktop_environment.h:108:
DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::DesktopEnvironment);
Oh, no! DISABLE_RUNNABLE_METHOD_REFCOUNT is evil! Can you guarantee that there
are no pending tasks for the object when it is being destroyed?

Powered by Google App Engine
This is Rietveld 408576698