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

Issue 4017002: HostMessageDispatcher to parse control messages (Closed)

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

Description

HostMessageDispatcher to parse control messages Changed MessageReader and MessageDecoder to support parsing in HostMessageDispatcher. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64283

Patch Set 1 #

Patch Set 2 : fix things #

Patch Set 3 : fix things more #

Total comments: 16

Patch Set 4 : big patch #

Total comments: 79

Patch Set 5 : fixed comments #

Total comments: 26

Patch Set 6 : fix comments #

Total comments: 1

Patch Set 7 : merged again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -465 lines) Patch
M remoting/base/multiple_array_input_stream.h View 4 5 2 chunks +18 lines, -10 lines 0 comments Download
M remoting/base/multiple_array_input_stream.cc View 4 4 chunks +15 lines, -22 lines 0 comments Download
M remoting/base/multiple_array_input_stream_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/client/chromoting_client.h View 2 chunks +3 lines, -2 lines 0 comments Download
M remoting/client/chromoting_client.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M remoting/client/host_connection.h View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/client/jingle_host_connection.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/client/jingle_host_connection.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M remoting/host/chromoting_host.cc View 1 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M remoting/host/client_connection.h View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M remoting/host/client_connection.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M remoting/host/event_executor_linux.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/mock_objects.h View 1 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/session_manager.cc View 1 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M remoting/proto/control.proto View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/protocol/host_message_dispatcher.h View 1 2 3 4 5 6 1 chunk +41 lines, -26 lines 0 comments Download
M remoting/protocol/host_message_dispatcher.cc View 1 2 3 4 5 6 1 chunk +47 lines, -10 lines 0 comments Download
A remoting/protocol/message_decoder.h View 1 2 3 4 5 6 1 chunk +110 lines, -0 lines 0 comments Download
A remoting/protocol/message_decoder.cc View 1 2 3 4 5 6 1 chunk +112 lines, -0 lines 0 comments Download
remoting/protocol/message_decoder_unittest.cc View 1 2 3 4 5 3 chunks +27 lines, -12 lines 0 comments Download
remoting/protocol/message_reader.h View 1 2 3 4 1 chunk +108 lines, -0 lines 0 comments Download
A remoting/protocol/message_reader.cc View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
D remoting/protocol/messages_decoder.h View 1 chunk +0 lines, -90 lines 0 comments Download
D remoting/protocol/messages_decoder.cc View 1 chunk +0 lines, -154 lines 0 comments Download
M remoting/protocol/socket_reader_base.h View 1 chunk +1 line, -1 line 0 comments Download
D remoting/protocol/stream_reader.h View 1 4 5 6 1 chunk +0 lines, -66 lines 0 comments Download
D remoting/protocol/stream_reader.cc View 1 4 5 6 1 chunk +0 lines, -50 lines 0 comments Download
M remoting/protocol/stream_writer.h View 1 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M remoting/remoting.gyp View 1 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Alpha Left Google
Finished the code that decoders / parses messages and have a dispatch method. I'm not ...
10 years, 2 months ago (2010-10-21 00:55:11 UTC) #1
Sergey Ulanov
Some nits. I think it would be much uglier if you were using macros here. ...
10 years, 2 months ago (2010-10-21 01:31:43 UTC) #2
awong
Between the last CL and this one, I'm starting to get a little lost on ...
10 years, 2 months ago (2010-10-21 22:22:29 UTC) #3
Alpha Left Google
updated this patch to use templates for MessageDecoder and MessageReader. Also had to chnage MultiArrayInputStream ...
10 years, 1 month ago (2010-10-26 18:45:05 UTC) #4
awong
I think this looks much cleaner than the previous version. Thanks for taking the time ...
10 years, 1 month ago (2010-10-26 22:05:57 UTC) #5
Sergey Ulanov
Please merge with the changes I landed yesterday and today. They include some things that ...
10 years, 1 month ago (2010-10-26 23:05:55 UTC) #6
Alpha Left Google
http://codereview.chromium.org/4017002/diff/19001/20001 File remoting/base/multiple_array_input_stream.cc (right): http://codereview.chromium.org/4017002/diff/19001/20001#newcode29 remoting/base/multiple_array_input_stream.cc:29: // Reply with what is remaining in the current ...
10 years, 1 month ago (2010-10-27 00:27:36 UTC) #7
awong
Mostly nits around comments, but 2 real coding issues. http://codereview.chromium.org/4017002/diff/19001/20020 File remoting/protocol/host_message_dispatcher.h (right): http://codereview.chromium.org/4017002/diff/19001/20020#newcode67 remoting/protocol/host_message_dispatcher.h:67: ...
10 years, 1 month ago (2010-10-27 02:09:35 UTC) #8
Alpha Left Google
fixed comments. I can't find comments on code issues, can you put it in again? ...
10 years, 1 month ago (2010-10-27 20:45:24 UTC) #9
awong
one nit. http://codereview.chromium.org/4017002/diff/81001/49026 File remoting/protocol/message_decoder.h (right): http://codereview.chromium.org/4017002/diff/81001/49026#newcode52 remoting/protocol/message_decoder.h:52: // This function retains |data| until all ...
10 years, 1 month ago (2010-10-27 20:53:07 UTC) #10
Alpha Left Google
fixed and merged.
10 years, 1 month ago (2010-10-27 22:59:30 UTC) #11
awong
10 years, 1 month ago (2010-10-27 23:03:36 UTC) #12
LGTM

I'm just going to assume you merged that correctly.

Powered by Google App Engine
This is Rietveld 408576698