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

Issue 2829018: Fix thread usage in chromoting host (Closed)

Created:
10 years, 6 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
Reviewers:
dmac, awong
CC:
chromium-reviews, Alpha Left Google, Sergey Ulanov, dmac, awong, garykac, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix thread usage in chromoting host There are several things done in this patch: 1. Isloate thread start and stop to ChromotingHostContext 2. SessionManager now doesn't own capturer and encoder, ownership moved to ChromotingHost 3. Fix up the sequence of actions when ChromotingHost shuts down TEST=remoting_unittests BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51050

Patch Set 1 #

Patch Set 2 : remove jingle change #

Patch Set 3 : fixed #

Total comments: 16

Patch Set 4 : done #

Patch Set 5 : added new states #

Total comments: 1

Patch Set 6 : removed useless test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -164 lines) Patch
M remoting/host/chromoting_host.h View 1 2 3 4 4 chunks +38 lines, -29 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 2 3 4 9 chunks +111 lines, -100 lines 0 comments Download
A remoting/host/chromoting_host_context.h View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A remoting/host/chromoting_host_context.cc View 1 chunk +56 lines, -0 lines 0 comments Download
A remoting/host/chromoting_host_context_unittest.cc View 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M remoting/host/client_connection.h View 1 chunk +4 lines, -1 line 0 comments Download
M remoting/host/client_connection.cc View 5 chunks +21 lines, -6 lines 0 comments Download
M remoting/host/client_connection_unittest.cc View 4 chunks +27 lines, -4 lines 0 comments Download
M remoting/host/encoder_verbatim.cc View 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/session_manager.h View 4 chunks +9 lines, -1 line 0 comments Download
M remoting/host/session_manager.cc View 1 2 7 chunks +37 lines, -16 lines 0 comments Download
M remoting/host/simple_host_process.cc View 1 2 3 4 4 chunks +21 lines, -6 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Alpha Left Google
This change is getting too big so I'm submitting this first. Unit tests will follow.
10 years, 6 months ago (2010-06-24 01:32:22 UTC) #1
awong
http://codereview.chromium.org/2829018/diff/5001/6001 File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/2829018/diff/5001/6001#newcode147 remoting/host/chromoting_host.cc:147: FROM_HERE, NewRunnableMethod(this, &ChromotingHost::DoShutdown)); After this point, are we expecting ...
10 years, 6 months ago (2010-06-24 01:45:47 UTC) #2
Alpha Left Google
http://codereview.chromium.org/2829018/diff/5001/6001 File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/2829018/diff/5001/6001#newcode147 remoting/host/chromoting_host.cc:147: FROM_HERE, NewRunnableMethod(this, &ChromotingHost::DoShutdown)); On 2010/06/24 01:45:47, awong wrote: > ...
10 years, 6 months ago (2010-06-24 19:35:35 UTC) #3
awong
http://codereview.chromium.org/2829018/diff/5001/6001 File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/2829018/diff/5001/6001#newcode147 remoting/host/chromoting_host.cc:147: FROM_HERE, NewRunnableMethod(this, &ChromotingHost::DoShutdown)); On 2010/06/24 19:35:36, Alpha wrote: > ...
10 years, 6 months ago (2010-06-25 20:52:46 UTC) #4
Alpha Left Google
http://codereview.chromium.org/2829018/diff/5001/6001 File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/2829018/diff/5001/6001#newcode147 remoting/host/chromoting_host.cc:147: FROM_HERE, NewRunnableMethod(this, &ChromotingHost::DoShutdown)); On 2010/06/25 20:52:46, awong wrote: > ...
10 years, 6 months ago (2010-06-25 21:26:45 UTC) #5
awong
10 years, 5 months ago (2010-06-28 20:37:33 UTC) #6
LGTM

Assuming the remoting.gyp dependencies are removed again.

http://codereview.chromium.org/2829018/diff/22001/23014
File remoting/remoting.gyp (right):

http://codereview.chromium.org/2829018/diff/22001/23014#newcode310
remoting/remoting.gyp:310: # TODO(hclam): Remove all these extra dependencies
notifier is moved
Rebase and whack these dependencies?

Powered by Google App Engine
This is Rietveld 408576698