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

Issue 8413034: New OutputStream interface (Closed)

Created:
9 years, 1 month ago by Søren Gjesse
Modified:
9 years, 1 month ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

New OutputStream interface R=ager@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=997

Patch Set 1 #

Total comments: 1

Patch Set 2 : Minor fixed #

Patch Set 3 : Minor fix #

Total comments: 18

Patch Set 4 : Addressed review comments from ager@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -92 lines) Patch
M runtime/bin/file.dart View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/file_impl.dart View 2 chunks +29 lines, -6 lines 0 comments Download
M runtime/bin/output_stream.dart View 1 2 3 1 chunk +59 lines, -4 lines 0 comments Download
M runtime/bin/process_impl.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/socket.dart View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/socket_impl.dart View 1 2 3 4 chunks +8 lines, -13 lines 0 comments Download
M runtime/bin/socket_stream.dart View 1 2 3 1 chunk +135 lines, -20 lines 0 comments Download
M tests/standalone/src/EchoServerStreamTest.dart View 2 chunks +3 lines, -5 lines 0 comments Download
M tests/standalone/src/FileTest.dart View 2 chunks +3 lines, -3 lines 0 comments Download
tests/standalone/src/ProcessStderrTest.dart View 1 1 chunk +11 lines, -17 lines 0 comments Download
M tests/standalone/src/ProcessStdoutTest.dart View 1 1 chunk +14 lines, -19 lines 0 comments Download
tests/standalone/src/SocketExceptionTest.dart View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Gjesse
http://codereview.chromium.org/8413034/diff/1/runtime/bin/socket_stream.dart File runtime/bin/socket_stream.dart (right): http://codereview.chromium.org/8413034/diff/1/runtime/bin/socket_stream.dart#newcode59 runtime/bin/socket_stream.dart:59: class _BufferList2 { This is quite similar to the ...
9 years, 1 month ago (2011-10-28 12:49:25 UTC) #1
Mads Ager (google)
LGTM http://codereview.chromium.org/8413034/diff/3001/runtime/bin/output_stream.dart File runtime/bin/output_stream.dart (right): http://codereview.chromium.org/8413034/diff/3001/runtime/bin/output_stream.dart#newcode24 runtime/bin/output_stream.dart:24: * the data is buffered by the output ...
9 years, 1 month ago (2011-10-31 09:56:48 UTC) #2
Søren Gjesse
9 years, 1 month ago (2011-11-01 08:56:46 UTC) #3
http://codereview.chromium.org/8413034/diff/3001/runtime/bin/output_stream.dart
File runtime/bin/output_stream.dart (right):

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/output_stream.da...
runtime/bin/output_stream.dart:24: * the data is buffered by the output stream
and will be send as
On 2011/10/31 09:56:48, Mads Ager wrote:
> will be sent

Done.

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/output_stream.da...
runtime/bin/output_stream.dart:37: * stream and will be send as soon as
possible.
On 2011/10/31 09:56:48, Mads Ager wrote:
> will be sent

Done.

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/output_stream.da...
runtime/bin/output_stream.dart:43: * stream. When all data has been written to
communication channel
On 2011/10/31 09:56:48, Mads Ager wrote:
> to communication -> to the communication

Done.

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/output_stream.da...
runtime/bin/output_stream.dart:64: * channel have been closed.
On 2011/10/31 09:56:48, Mads Ager wrote:
> have -> has

Done.

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/output_stream.da...
runtime/bin/output_stream.dart:72: void set errorHandler(void callback());
On 2011/10/31 09:56:48, Mads Ager wrote:
> Should the callback take a string or some other error indication? We don't
have
> to add that now.

Maybe this should be an exception object. We will determine later.

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/socket_impl.dart
File runtime/bin/socket_impl.dart (right):

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/socket_impl.dart...
runtime/bin/socket_impl.dart:114: // Don't throw exceptions when closing sockets
more than once.
On 2011/10/31 09:56:48, Mads Ager wrote:
> Maybe remove this here and add it is a comment to the interface instead?

Done.

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/socket_stream.dart
File runtime/bin/socket_stream.dart (right):

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/socket_stream.da...
runtime/bin/socket_stream.dart:91: bool get empty() => _buffers.isEmpty();
On 2011/10/31 09:56:48, Mads Ager wrote:
> I don't think empty should be a getter. I would only use getters for stuff
that
> is logically a field. 

Done.

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/socket_stream.da...
runtime/bin/socket_stream.dart:107: :  _socket = socket, _pendingWrites = new
_BufferList2() {
On 2011/10/31 09:56:48, Mads Ager wrote:
> Are there two spaces between ":" and "_" here?

Done.

http://codereview.chromium.org/8413034/diff/3001/runtime/bin/socket_stream.da...
runtime/bin/socket_stream.dart:109: _socket.setErrorHandler(_errorHandler);
On 2011/10/31 09:56:48, Mads Ager wrote:
> Indentation.

Done.

Powered by Google App Engine
This is Rietveld 408576698