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

Issue 13212009: Made DesktopEnvironment responsible for creation of the disconnect window. (Closed)

Created:
7 years, 8 months ago by alexeypa (please no reviews)
Modified:
7 years, 8 months ago
Reviewers:
Sergey Ulanov, Jamie
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, sail+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Refactored the disconnect window such that it can be owned by the desktop environment. This CL adds two new classes: HostWindow and HostWindowProxy. HostWindow is a non thread-safe base class for platform-specific implementations of the disconnect and continue windows. HostWindowProxy implements thread switching logic (using a ref-counted HostWindowProxy::Core). The combination of HostWindow and HostWindowProxy allows DesktopEnvironment to create the disconnect window on the network thread and run it on the UI thread. This is the 1st CL (out of 2) that deprecates the HostUserInterface class and moves responsibility to create the local UI to the corresponding DesktopEnvironment instances. The follow up CL will migrate the continue window logic. BUG=104544 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192473

Patch Set 1 #

Patch Set 2 : Refactored DisconnectWindow such that it is based on HostWindow now. #

Patch Set 3 : Fix Linux & Mac. #

Total comments: 9

Patch Set 4 : Moving thread-swicthing logic to HostWindowProxy. #

Patch Set 5 : Added missing header on Mac. #

Patch Set 6 : More Mac fixes. #

Total comments: 10

Patch Set 7 : CR feedback & rebased. #

Patch Set 8 : fix Mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+584 lines, -363 lines) Patch
M remoting/host/basic_desktop_environment.h View 1 7 chunks +22 lines, -2 lines 0 comments Download
M remoting/host/basic_desktop_environment.cc View 1 2 3 4 5 6 4 chunks +44 lines, -5 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 5 chunks +1 line, -9 lines 0 comments Download
M remoting/host/desktop_process_main.cc View 3 chunks +7 lines, -1 line 0 comments Download
M remoting/host/desktop_process_unittest.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M remoting/host/desktop_session_agent.h View 4 chunks +0 lines, -7 lines 0 comments Download
M remoting/host/desktop_session_agent.cc View 5 chunks +0 lines, -13 lines 0 comments Download
M remoting/host/disconnect_window.h View 1 1 chunk +0 lines, -44 lines 0 comments Download
M remoting/host/disconnect_window_gtk.cc View 1 2 3 4 5 6 8 chunks +76 lines, -71 lines 0 comments Download
M remoting/host/disconnect_window_mac.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M remoting/host/disconnect_window_mac.mm View 1 2 3 4 5 6 7 3 chunks +41 lines, -32 lines 0 comments Download
M remoting/host/disconnect_window_win.cc View 1 2 3 4 5 6 15 chunks +70 lines, -64 lines 0 comments Download
M remoting/host/host_mock_objects.h View 1 2 chunks +1 line, -11 lines 0 comments Download
M remoting/host/host_mock_objects.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M remoting/host/host_user_interface.h View 2 chunks +0 lines, -4 lines 0 comments Download
M remoting/host/host_user_interface.cc View 4 chunks +0 lines, -17 lines 0 comments Download
A remoting/host/host_window.h View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A remoting/host/host_window_proxy.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A remoting/host/host_window_proxy.cc View 1 2 3 1 chunk +177 lines, -0 lines 0 comments Download
M remoting/host/ipc_desktop_environment_unittest.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M remoting/host/it2me_host_user_interface.cc View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/host/me2me_desktop_environment.h View 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/host/me2me_desktop_environment.cc View 1 3 chunks +12 lines, -5 lines 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 6 8 chunks +6 lines, -35 lines 0 comments Download
M remoting/host/win/session_desktop_environment.h View 2 chunks +2 lines, -0 lines 0 comments Download
M remoting/host/win/session_desktop_environment.cc View 3 chunks +19 lines, -14 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 6 2 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
alexeypa (please no reviews)
Sergey, please take a look. Jamie, PTAL at Mac changes.
7 years, 8 months ago (2013-03-29 22:43:49 UTC) #1
alexeypa (please no reviews)
I moved the common code from DisconnectWindow and ContinueWindow to HostWindow to make the implementations ...
7 years, 8 months ago (2013-04-01 21:55:30 UTC) #2
Sergey Ulanov
Previously DisconnectWindow was NonThreadSafe and was always used on UI thread. Now each of the ...
7 years, 8 months ago (2013-04-02 19:04:22 UTC) #3
alexeypa (please no reviews)
> Previously DisconnectWindow was NonThreadSafe and was always used on UI thread. Good point. PTAL ...
7 years, 8 months ago (2013-04-03 20:26:42 UTC) #4
Sergey Ulanov
lgtm https://codereview.chromium.org/13212009/diff/30001/remoting/host/disconnect_window_mac.mm File remoting/host/disconnect_window_mac.mm (right): https://codereview.chromium.org/13212009/diff/30001/remoting/host/disconnect_window_mac.mm#newcode48 remoting/host/disconnect_window_mac.mm:48: window_controller_(NULL) { s/NULL/nil/ https://codereview.chromium.org/13212009/diff/30001/remoting/host/disconnect_window_win.cc File remoting/host/disconnect_window_win.cc (right): https://codereview.chromium.org/13212009/diff/30001/remoting/host/disconnect_window_win.cc#newcode279 ...
7 years, 8 months ago (2013-04-04 00:10:03 UTC) #5
alexeypa (please no reviews)
Jamie, do you want to take a look at Mac changes? https://chromiumcodereview.appspot.com/13212009/diff/30001/remoting/host/disconnect_window_mac.mm File remoting/host/disconnect_window_mac.mm (right): ...
7 years, 8 months ago (2013-04-04 16:56:40 UTC) #6
Jamie
Mac lgtm as far as basic Obj-C is concerned. I haven't looked at it any ...
7 years, 8 months ago (2013-04-04 17:00:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/13212009/38001
7 years, 8 months ago (2013-04-04 17:04:57 UTC) #8
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-04 17:10:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/13212009/38001
7 years, 8 months ago (2013-04-04 18:06:06 UTC) #10
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-04 18:07:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/13212009/38001
7 years, 8 months ago (2013-04-04 19:29:46 UTC) #12
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-04 19:33:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/13212009/38001
7 years, 8 months ago (2013-04-04 22:44:13 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-04 23:11:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/13212009/66001
7 years, 8 months ago (2013-04-04 23:23:59 UTC) #16
commit-bot: I haz the power
7 years, 8 months ago (2013-04-05 03:32:08 UTC) #17
Message was sent while issue was closed.
Change committed as 192473

Powered by Google App Engine
This is Rietveld 408576698