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

Issue 13466014: Made the ChromotingHost class not ref-counted. (Closed)

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

Description

Made the ChromotingHost class not ref-counted. ChromotingHost becomes a non thread-safe class should should live on the network thread. The CL removes ChromotingHost::Shutdown() allowing ChromotingHost to be destroyed synchronously closing all existing connections. It also updates HostStatusObserver::OnShutdown() handler to not destroy the host since it is the host's owner responsibility now. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196343

Patch Set 1 #

Patch Set 2 : cosmetic #

Total comments: 24

Patch Set 3 : CR feedback. #

Total comments: 6

Patch Set 4 : CR feedback #2 #

Total comments: 2

Patch Set 5 : CR feedback #3 #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -217 lines) Patch
M remoting/host/chromoting_host.h View 1 2 3 4 8 chunks +11 lines, -32 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 2 3 12 chunks +31 lines, -104 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 2 3 4 5 5 chunks +35 lines, -43 lines 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 2 3 4 5 8 chunks +31 lines, -26 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 7 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
alexeypa (please no reviews)
PTAL.
7 years, 8 months ago (2013-04-02 19:03:08 UTC) #1
Wez
https://chromiumcodereview.appspot.com/13466014/diff/2001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): https://chromiumcodereview.appspot.com/13466014/diff/2001/remoting/host/chromoting_host.cc#newcode99 remoting/host/chromoting_host.cc:99: DCHECK(CalledOnValidThread()); Can we also DCHECK that Start() is only ...
7 years, 8 months ago (2013-04-02 19:58:33 UTC) #2
alexeypa (please no reviews)
PTAL https://chromiumcodereview.appspot.com/13466014/diff/2001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): https://chromiumcodereview.appspot.com/13466014/diff/2001/remoting/host/chromoting_host.cc#newcode99 remoting/host/chromoting_host.cc:99: DCHECK(CalledOnValidThread()); On 2013/04/02 19:58:33, Wez wrote: > Can ...
7 years, 8 months ago (2013-04-08 23:28:17 UTC) #3
Wez
https://chromiumcodereview.appspot.com/13466014/diff/9001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): https://chromiumcodereview.appspot.com/13466014/diff/9001/remoting/host/chromoting_host.cc#newcode102 remoting/host/chromoting_host.cc:102: // Destroy session manager. nit: Why does this need ...
7 years, 8 months ago (2013-04-09 01:08:20 UTC) #4
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/13466014/diff/9001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): https://chromiumcodereview.appspot.com/13466014/diff/9001/remoting/host/chromoting_host.cc#newcode102 remoting/host/chromoting_host.cc:102: // Destroy session manager. On 2013/04/09 01:08:21, Wez wrote: ...
7 years, 8 months ago (2013-04-12 18:22:26 UTC) #5
Wez
LGTM but please update the CL description, since Shutdown() no longer exists. https://chromiumcodereview.appspot.com/13466014/diff/16001/remoting/host/chromoting_host.h File remoting/host/chromoting_host.h ...
7 years, 8 months ago (2013-04-15 19:50:04 UTC) #6
alexeypa (please no reviews)
https://codereview.chromium.org/13466014/diff/16001/remoting/host/chromoting_host.h File remoting/host/chromoting_host.h (right): https://codereview.chromium.org/13466014/diff/16001/remoting/host/chromoting_host.h#newcode134 remoting/host/chromoting_host.h:134: // Disconnects all active clients synchronously. Sub-components might shutdown ...
7 years, 8 months ago (2013-04-15 20:04:42 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/13466014/27001
7 years, 8 months ago (2013-04-24 21:19:48 UTC) #8
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-24 21:39:42 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/13466014/27001
7 years, 8 months ago (2013-04-24 21:53:17 UTC) #10
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=33049
7 years, 8 months ago (2013-04-25 01:05:23 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/13466014/27001
7 years, 8 months ago (2013-04-25 03:36:33 UTC) #12
commit-bot: I haz the power
7 years, 8 months ago (2013-04-25 07:19:42 UTC) #13
Message was sent while issue was closed.
Change committed as 196343

Powered by Google App Engine
This is Rietveld 408576698