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

Issue 4726003: Implement InputStub in the host side for chromoting (Closed)

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

Description

Implement input stub in the host side for chromoting Implement InputStub for the host. BUG=None TEST=None

Patch Set 1 #

Total comments: 14

Patch Set 2 : post task + use MessageLoopProxy #

Patch Set 3 : backup #

Total comments: 13

Patch Set 4 : fix windows #

Patch Set 5 : done #

Patch Set 6 : fixed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -246 lines) Patch
M remoting/host/chromoting_host.h View 6 chunks +5 lines, -8 lines 0 comments Download
M remoting/host/chromoting_host.cc View 2 3 4 4 chunks +4 lines, -14 lines 0 comments Download
M remoting/host/chromoting_host_context.h View 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
D remoting/host/event_executor.h View 1 chunk +0 lines, -42 lines 0 comments Download
M remoting/host/event_executor_linux.h View 1 2 3 4 5 2 chunks +18 lines, -4 lines 0 comments Download
M remoting/host/event_executor_linux.cc View 1 2 3 4 5 8 chunks +58 lines, -37 lines 0 comments Download
M remoting/host/event_executor_mac.h View 1 2 3 4 5 1 chunk +14 lines, -4 lines 0 comments Download
M remoting/host/event_executor_mac.cc View 1 2 3 4 1 chunk +14 lines, -5 lines 0 comments Download
M remoting/host/event_executor_win.h View 1 2 4 5 1 chunk +27 lines, -10 lines 1 comment Download
M remoting/host/event_executor_win.cc View 1 2 4 5 5 chunks +55 lines, -43 lines 1 comment Download
M remoting/host/mock_objects.h View 2 chunks +0 lines, -12 lines 0 comments Download
M remoting/host/session_manager_unittest.cc View 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M remoting/host/simple_host_process.cc View 1 2 3 4 3 chunks +13 lines, -10 lines 0 comments Download
M remoting/proto/event.proto View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M remoting/protocol/connection_to_client.h View 1 2 3 4 5 6 chunks +16 lines, -17 lines 0 comments Download
M remoting/protocol/connection_to_client.cc View 4 chunks +10 lines, -17 lines 0 comments Download
M remoting/protocol/connection_to_client_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download
M remoting/protocol/connection_to_host.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M remoting/protocol/host_message_dispatcher.h View 2 chunks +1 line, -3 lines 0 comments Download
M remoting/protocol/host_message_dispatcher.cc View 1 2 3 4 2 chunks +14 lines, -2 lines 0 comments Download
M remoting/protocol/host_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/input_stub.h View 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/protocol/mock_objects.h View 2 chunks +24 lines, -0 lines 0 comments Download
M remoting/remoting.gyp View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
Alpha Left Google
Sending this out for comments. I'm a little worried about threading so please tell me ...
10 years, 1 month ago (2010-11-10 01:43:03 UTC) #1
awong
I see what you mean about the threading. This comes a bit back to the ...
10 years, 1 month ago (2010-11-10 19:36:54 UTC) #2
Sergey Ulanov
Agree with Albert on the threading issue. We should handle any messages on the network ...
10 years, 1 month ago (2010-11-10 20:14:21 UTC) #3
awong
On Wed, Nov 10, 2010 at 12:14 PM, <sergeyu@chromium.org> wrote: > Agree with Albert on ...
10 years, 1 month ago (2010-11-10 20:20:58 UTC) #4
Alpha Left Google
Event executors now run on the capture thread. Also changed from using MessageLoop to MessageLoopProxy. ...
10 years, 1 month ago (2010-11-11 02:53:31 UTC) #5
awong
Looks pretty good I've got some minor comments. The biggest of which is MessageLoopProxy...I still ...
10 years, 1 month ago (2010-11-12 01:40:10 UTC) #6
Alpha Left Google
fixed also windows. please take another look.
10 years, 1 month ago (2010-11-12 02:10:39 UTC) #7
Sergey Ulanov
I agree with Albert about MessageLoopProxy usage. If we worry about threads destroyed unexpectedly then ...
10 years, 1 month ago (2010-11-12 19:52:40 UTC) #8
Sergey Ulanov
On Fri, Nov 12, 2010 at 11:52 AM, Sergey Ulanov <sergeyu@chromium.org>wrote: > I agree with ...
10 years, 1 month ago (2010-11-12 19:55:28 UTC) #9
Alpha Left Google
MessageLoopProxy is the newer version of using MessageLoop which gives us protection during teardown. We ...
10 years, 1 month ago (2010-11-12 20:07:51 UTC) #10
Alpha Left Google
http://codereview.chromium.org/4726003/diff/1/remoting/host/chromoting_host.h File remoting/host/chromoting_host.h (right): http://codereview.chromium.org/4726003/diff/1/remoting/host/chromoting_host.h#newcode66 remoting/host/chromoting_host.h:66: Capturer* capturer, protocol::InputStub* input_stub); On 2010/11/10 20:14:21, sergeyu wrote: ...
10 years, 1 month ago (2010-11-12 20:08:01 UTC) #11
awong
On Fri, Nov 12, 2010 at 12:08 PM, <hclam@chromium.org> wrote: > > > http://codereview.chromium.org/4726003/diff/1/remoting/host/chromoting_host.h > ...
10 years, 1 month ago (2010-11-12 20:25:30 UTC) #12
Sergey Ulanov
http://codereview.chromium.org/4726003/diff/1/remoting/protocol/host_message_dispatcher.cc File remoting/protocol/host_message_dispatcher.cc (right): http://codereview.chromium.org/4726003/diff/1/remoting/protocol/host_message_dispatcher.cc#newcode82 remoting/protocol/host_message_dispatcher.cc:82: message->mutable_suggest_resolution(), NewDeleteTask(ref_msg)); On 2010/11/12 20:08:01, Alpha wrote: > On ...
10 years, 1 month ago (2010-11-12 20:30:33 UTC) #13
Sergey Ulanov
On Fri, Nov 12, 2010 at 12:07 PM, <hclam@chromium.org> wrote: > MessageLoopProxy is the newer ...
10 years, 1 month ago (2010-11-12 20:36:36 UTC) #14
Alpha Left Google
In fact what I plan to do for next iteration is to change everything in ...
10 years, 1 month ago (2010-11-12 21:23:35 UTC) #15
awong
I don't believe we need MessageLoopProxy in our code, and am really not 100% comfortable ...
10 years, 1 month ago (2010-11-12 21:29:32 UTC) #16
Alpha Left Google
Switched back to MessageLoop and not calling mutable_*.
10 years, 1 month ago (2010-11-12 22:45:03 UTC) #17
Alpha Left Google
http://codereview.chromium.org/4726003/diff/22001/remoting/host/simple_host_process.cc File remoting/host/simple_host_process.cc (right): http://codereview.chromium.org/4726003/diff/22001/remoting/host/simple_host_process.cc#newcode126 remoting/host/simple_host_process.cc:126: context.Stop(); On 2010/11/12 01:40:10, awong wrote: > Don't we ...
10 years, 1 month ago (2010-11-12 22:56:40 UTC) #18
awong
LGTM w/ small nit and if it compiles. :) http://codereview.chromium.org/4726003/diff/22001/remoting/host/simple_host_process.cc File remoting/host/simple_host_process.cc (right): http://codereview.chromium.org/4726003/diff/22001/remoting/host/simple_host_process.cc#newcode126 remoting/host/simple_host_process.cc:126: ...
10 years, 1 month ago (2010-11-12 23:29:04 UTC) #19
Sergey Ulanov
LGTM. Thanks
10 years, 1 month ago (2010-11-12 23:43:20 UTC) #20
Sergey Ulanov
10 years, 1 month ago (2010-11-12 23:43:20 UTC) #21
LGTM. Thanks

Powered by Google App Engine
This is Rietveld 408576698