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

Side by Side Diff: sdk/lib/io/chunked_stream.dart

Issue 11419032: Switch libraries to using new tags. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to tip of tree. Changed library names to dart.x Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/io/buffer_list.dart ('k') | sdk/lib/io/common.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io;
6
5 class _ChunkedInputStream implements ChunkedInputStream { 7 class _ChunkedInputStream implements ChunkedInputStream {
6 _ChunkedInputStream(InputStream this._input, int this._chunkSize) 8 _ChunkedInputStream(InputStream this._input, int this._chunkSize)
7 : _bufferList = new _BufferList() { 9 : _bufferList = new _BufferList() {
8 _input.onClosed = _onClosed; 10 _input.onClosed = _onClosed;
9 } 11 }
10 12
11 List<int> read() { 13 List<int> read() {
12 if (_closed) return null; 14 if (_closed) return null;
13 var result = _bufferList.readBytes(_chunkSize); 15 var result = _bufferList.readBytes(_chunkSize);
14 if (result == null) { 16 if (result == null) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 InputStream _input; 131 InputStream _input;
130 _BufferList _bufferList; 132 _BufferList _bufferList;
131 int _chunkSize; 133 int _chunkSize;
132 bool _inputClosed = false; // Is the underlying input stream closed? 134 bool _inputClosed = false; // Is the underlying input stream closed?
133 bool _closed = false; // Has the close handler been called?. 135 bool _closed = false; // Has the close handler been called?.
134 Timer _scheduledDataCallback; 136 Timer _scheduledDataCallback;
135 Timer _scheduledCloseCallback; 137 Timer _scheduledCloseCallback;
136 Function _clientDataHandler; 138 Function _clientDataHandler;
137 Function _clientCloseHandler; 139 Function _clientCloseHandler;
138 } 140 }
OLDNEW
« no previous file with comments | « sdk/lib/io/buffer_list.dart ('k') | sdk/lib/io/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698