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

Issue 4779001: Added CompoundBuffer that will be used to store data in the encoding/decoding (Closed)

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

Description

Added CompoundBuffer that will be used to store data in the encoding/decoding pipeline. BUG=None TEST=Unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66209

Patch Set 1 #

Patch Set 2 : merged CompoundBuffer with MultipleArrayInputStream #

Total comments: 32

Patch Set 3 : addressed comments #

Patch Set 4 : - #

Total comments: 12

Patch Set 5 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+666 lines, -294 lines) Patch
A remoting/base/compound_buffer.h View 1 2 3 4 1 chunk +120 lines, -0 lines 0 comments Download
A remoting/base/compound_buffer.cc View 1 2 3 4 1 chunk +232 lines, -0 lines 0 comments Download
A remoting/base/compound_buffer_unittest.cc View 1 2 3 4 1 chunk +249 lines, -0 lines 0 comments Download
D remoting/base/multiple_array_input_stream.h View 1 chunk +0 lines, -57 lines 0 comments Download
D remoting/base/multiple_array_input_stream.cc View 1 chunk +0 lines, -87 lines 0 comments Download
D remoting/base/multiple_array_input_stream_unittest.cc View 1 chunk +0 lines, -98 lines 0 comments Download
M remoting/protocol/connection_to_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/host_message_dispatcher.cc View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/protocol/jingle_connection_to_host.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M remoting/protocol/message_decoder.h View 2 3 4 3 chunks +12 lines, -11 lines 0 comments Download
M remoting/protocol/message_decoder.cc View 2 4 chunks +7 lines, -8 lines 0 comments Download
M remoting/protocol/message_decoder_unittest.cc View 2 1 chunk +0 lines, -2 lines 0 comments Download
M remoting/protocol/message_reader.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/rtp_reader.h View 1 chunk +11 lines, -5 lines 0 comments Download
M remoting/protocol/rtp_reader.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M remoting/protocol/rtp_video_reader.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M remoting/protocol/rtp_video_writer.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M remoting/protocol/rtp_writer.h View 2 chunks +4 lines, -1 line 0 comments Download
M remoting/protocol/rtp_writer.cc View 1 2 5 chunks +9 lines, -7 lines 0 comments Download
M remoting/protocol/util.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/remoting.gyp View 1 4 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Sergey Ulanov
10 years, 1 month ago (2010-11-10 21:59:48 UTC) #1
Sergey Ulanov
Now I've merged CompoundBuffer with MultipleArrayInputStream as Alpha suggested.
10 years, 1 month ago (2010-11-11 23:20:17 UTC) #2
awong
http://codereview.chromium.org/4779001/diff/3001/remoting/base/compound_buffer.cc File remoting/base/compound_buffer.cc (right): http://codereview.chromium.org/4779001/diff/3001/remoting/base/compound_buffer.cc#newcode40 remoting/base/compound_buffer.cc:40: remove extra newline http://codereview.chromium.org/4779001/diff/3001/remoting/base/compound_buffer.cc#newcode47 remoting/base/compound_buffer.cc:47: DCHECK_EQ(position_, 0); // Haven't ...
10 years, 1 month ago (2010-11-12 02:40:06 UTC) #3
Sergey Ulanov
http://codereview.chromium.org/4779001/diff/3001/remoting/base/compound_buffer.cc File remoting/base/compound_buffer.cc (right): http://codereview.chromium.org/4779001/diff/3001/remoting/base/compound_buffer.cc#newcode40 remoting/base/compound_buffer.cc:40: On 2010/11/12 02:40:06, awong wrote: > remove extra newline ...
10 years, 1 month ago (2010-11-13 04:43:39 UTC) #4
awong
LGTM / nits http://codereview.chromium.org/4779001/diff/3001/remoting/base/compound_buffer.h File remoting/base/compound_buffer.h (right): http://codereview.chromium.org/4779001/diff/3001/remoting/base/compound_buffer.h#newcode9 remoting/base/compound_buffer.h:9: // and assembling them into one ...
10 years, 1 month ago (2010-11-16 00:04:57 UTC) #5
Sergey Ulanov
10 years, 1 month ago (2010-11-16 01:25:09 UTC) #6
http://codereview.chromium.org/4779001/diff/17001/remoting/base/compound_buff...
File remoting/base/compound_buffer.cc (right):

http://codereview.chromium.org/4779001/diff/17001/remoting/base/compound_buff...
remoting/base/compound_buffer.cc:16: start(start),
On 2010/11/16 00:04:58, awong wrote:
> ick, that's confusing.  Can we call the parameters something that doesn't
shadow
> the member variables?

Done.

http://codereview.chromium.org/4779001/diff/17001/remoting/base/compound_buff...
File remoting/base/compound_buffer.h (right):

http://codereview.chromium.org/4779001/diff/17001/remoting/base/compound_buff...
remoting/base/compound_buffer.h:13: // a protocol buffer message.
On 2010/11/16 00:04:58, awong wrote:
> Add comment on threadsafety of this class.

Done.

http://codereview.chromium.org/4779001/diff/17001/remoting/base/compound_buff...
remoting/base/compound_buffer.h:57: void Lock();
On 2010/11/16 00:04:58, awong wrote:
> You mean nothing can be appended to prepend right? You can still change the
data
> inside it if you pass in an IOBuffer and manipulate it externally...
> 
> Change to be more specific that you can't append or prepend?

Done.

http://codereview.chromium.org/4779001/diff/17001/remoting/base/compound_buff...
File remoting/base/compound_buffer_unittest.cc (right):

http://codereview.chromium.org/4779001/diff/17001/remoting/base/compound_buff...
remoting/base/compound_buffer_unittest.cc:146: CompoundBuffer* mstream = new
CompoundBuffer();
On 2010/11/16 00:04:58, awong wrote:
> Why is this called "mstream"?  Is there a more sensible name?

Done.

http://codereview.chromium.org/4779001/diff/17001/remoting/protocol/message_d...
File remoting/protocol/message_decoder.h (right):

http://codereview.chromium.org/4779001/diff/17001/remoting/protocol/message_d...
remoting/protocol/message_decoder.h:13: #include "net/base/io_buffer.h"
On 2010/11/16 00:04:58, awong wrote:
> ordering

Done.

http://codereview.chromium.org/4779001/diff/17001/remoting/protocol/message_d...
remoting/protocol/message_decoder.h:14: #include
"google/protobuf/message_lite.h"
On 2010/11/16 00:04:58, awong wrote:
> Should this be from third_party/protobuf/src?

Done. Also changed util.h

Powered by Google App Engine
This is Rietveld 408576698