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

Issue 6282006: Add a done task to ScreenRecorder::Stop() (Closed)

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

Description

Add a done task to ScreenRecorder::Stop() ScreenRecorder::Stop() need a done task to indicate it is actually paused. This is needed so that we can shutdown threads safely. BUG=69997 TEST=remoting_unittests --gtest_filter=ScreenRecorder.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72188

Patch Set 1 #

Patch Set 2 : fixed mistable #

Patch Set 3 : ready now #

Total comments: 13

Patch Set 4 : fix style #

Total comments: 1

Patch Set 5 : fixed comments #

Total comments: 11

Patch Set 6 : fixed comments #

Total comments: 1

Patch Set 7 : fixed comments #

Patch Set 8 : added comments about thread usage #

Patch Set 9 : fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -71 lines) Patch
M remoting/host/chromoting_host.cc View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M remoting/host/screen_recorder.h View 1 2 3 4 5 6 7 8 6 chunks +29 lines, -12 lines 0 comments Download
M remoting/host/screen_recorder.cc View 1 2 3 4 5 6 7 8 12 chunks +92 lines, -25 lines 0 comments Download
M remoting/host/screen_recorder_unittest.cc View 1 2 3 4 5 3 chunks +100 lines, -29 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Alpha Left Google
Please take a look of this code. This adds a pause task to ScreenRecorder. However ...
9 years, 11 months ago (2011-01-19 02:25:57 UTC) #1
Alpha Left Google
hm.. fixed a bug in my code.. test didn't catch that..
9 years, 11 months ago (2011-01-19 02:44:13 UTC) #2
Alpha Left Google
This is ready for review. I changed pause to stop and so now it's safe ...
9 years, 11 months ago (2011-01-19 23:50:19 UTC) #3
Sergey Ulanov
http://codereview.chromium.org/6282006/diff/7001/remoting/host/screen_recorder.cc File remoting/host/screen_recorder.cc (right): http://codereview.chromium.org/6282006/diff/7001/remoting/host/screen_recorder.cc#newcode152 remoting/host/screen_recorder.cc:152: if (task) { Call DoCompleteStop()? http://codereview.chromium.org/6282006/diff/7001/remoting/host/screen_recorder.cc#newcode270 remoting/host/screen_recorder.cc:270: // more ...
9 years, 11 months ago (2011-01-20 19:14:17 UTC) #4
Alpha Left Google
Addressing style problems later. http://codereview.chromium.org/6282006/diff/7001/remoting/host/screen_recorder.cc File remoting/host/screen_recorder.cc (right): http://codereview.chromium.org/6282006/diff/7001/remoting/host/screen_recorder.cc#newcode270 remoting/host/screen_recorder.cc:270: // more than one connection. ...
9 years, 11 months ago (2011-01-20 19:24:17 UTC) #5
Alpha Left Google
Fixed style problems too. http://codereview.chromium.org/6282006/diff/7001/remoting/host/screen_recorder.cc File remoting/host/screen_recorder.cc (right): http://codereview.chromium.org/6282006/diff/7001/remoting/host/screen_recorder.cc#newcode152 remoting/host/screen_recorder.cc:152: if (task) { On 2011/01/20 ...
9 years, 11 months ago (2011-01-20 19:32:08 UTC) #6
Sergey Ulanov
LGTM http://codereview.chromium.org/6282006/diff/15001/remoting/host/screen_recorder.cc File remoting/host/screen_recorder.cc (right): http://codereview.chromium.org/6282006/diff/15001/remoting/host/screen_recorder.cc#newcode346 remoting/host/screen_recorder.cc:346: // TODO(hclam): Invalid the full screen if there ...
9 years, 11 months ago (2011-01-20 20:00:06 UTC) #7
awong
I got acouple more comments... http://codereview.chromium.org/6282006/diff/21001/remoting/host/screen_recorder.cc File remoting/host/screen_recorder.cc (right): http://codereview.chromium.org/6282006/diff/21001/remoting/host/screen_recorder.cc#newcode69 remoting/host/screen_recorder.cc:69: void ScreenRecorder::Stop(Task* done_task) { ...
9 years, 11 months ago (2011-01-20 20:14:00 UTC) #8
Sergey Ulanov
http://codereview.chromium.org/6282006/diff/21001/remoting/protocol/buffered_socket_writer.h File remoting/protocol/buffered_socket_writer.h (left): http://codereview.chromium.org/6282006/diff/21001/remoting/protocol/buffered_socket_writer.h#oldcode93 remoting/protocol/buffered_socket_writer.h:93: scoped_ptr<WriteFailedCallback> write_failed_callback_; After looking at this again: This is ...
9 years, 11 months ago (2011-01-20 20:56:26 UTC) #9
Alpha Left Google
http://codereview.chromium.org/6282006/diff/21001/remoting/host/screen_recorder.cc File remoting/host/screen_recorder.cc (right): http://codereview.chromium.org/6282006/diff/21001/remoting/host/screen_recorder.cc#newcode69 remoting/host/screen_recorder.cc:69: void ScreenRecorder::Stop(Task* done_task) { On 2011/01/20 20:14:00, awong wrote: ...
9 years, 11 months ago (2011-01-20 22:48:47 UTC) #10
Alpha Left Google
ping.
9 years, 11 months ago (2011-01-21 18:58:44 UTC) #11
awong
One more comment. http://codereview.chromium.org/6282006/diff/26001/remoting/host/screen_recorder.h File remoting/host/screen_recorder.h (right): http://codereview.chromium.org/6282006/diff/26001/remoting/host/screen_recorder.h#newcode65 remoting/host/screen_recorder.h:65: // |started_| - If this is ...
9 years, 11 months ago (2011-01-21 19:09:40 UTC) #12
Alpha Left Google
On 2011/01/21 19:09:40, awong wrote: > One more comment. > > http://codereview.chromium.org/6282006/diff/26001/remoting/host/screen_recorder.h > File remoting/host/screen_recorder.h ...
9 years, 11 months ago (2011-01-21 19:18:39 UTC) #13
Alpha Left Google
changed variable names and fixed comments.
9 years, 11 months ago (2011-01-21 19:37:28 UTC) #14
awong
9 years, 11 months ago (2011-01-21 19:42:19 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld 408576698