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

Side by Side Diff: runtime/bin/http_impl.dart

Issue 9839053: Add error handling to random access file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months 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
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 class _HttpRequestResponseBase { 5 class _HttpRequestResponseBase {
6 _HttpRequestResponseBase(_HttpConnectionBase this._httpConnection) 6 _HttpRequestResponseBase(_HttpConnectionBase this._httpConnection)
7 : _contentLength = -1, 7 : _contentLength = -1,
8 _keepAlive = false, 8 _keepAlive = false,
9 _headers = new Map(); 9 _headers = new Map();
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 List<int> _streamRead(int bytesToRead) { 173 List<int> _streamRead(int bytesToRead) {
174 return _buffer.readBytes(bytesToRead); 174 return _buffer.readBytes(bytesToRead);
175 } 175 }
176 176
177 int _streamReadInto(List<int> buffer, int offset, int len) { 177 int _streamReadInto(List<int> buffer, int offset, int len) {
178 List<int> data = _buffer.readBytes(len); 178 List<int> data = _buffer.readBytes(len);
179 buffer.setRange(offset, data.length, data); 179 buffer.setRange(offset, data.length, data);
180 } 180 }
181 181
182 void _streamSetErrorHandler(callback(Exception e)) { 182 void _streamSetErrorHandler(callback(Exception e)) {
183 _streamErrorHandler = callback 183 _streamErrorHandler = callback;
Mads Ager (google) 2012/03/23 23:17:57 This looks like a left-over from the previous chan
Søren Gjesse 2012/03/26 05:47:40 Yes, the svn rebase was in between the two.
184 } 184 }
185 185
186 String _method; 186 String _method;
187 String _uri; 187 String _uri;
188 String _path; 188 String _path;
189 String _queryString; 189 String _queryString;
190 Map<String, String> _queryParameters; 190 Map<String, String> _queryParameters;
191 _HttpInputStream _inputStream; 191 _HttpInputStream _inputStream;
192 _BufferList _buffer; 192 _BufferList _buffer;
193 Function _streamErrorHandler; 193 Function _streamErrorHandler;
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 sockets.addFirst(socketConn); 1197 sockets.addFirst(socketConn);
1198 socketConn._markReturned(); 1198 socketConn._markReturned();
1199 } 1199 }
1200 1200
1201 Function _onOpen; 1201 Function _onOpen;
1202 Map<String, Queue<_SocketConnection>> _openSockets; 1202 Map<String, Queue<_SocketConnection>> _openSockets;
1203 Set<_SocketConnection> _activeSockets; 1203 Set<_SocketConnection> _activeSockets;
1204 Timer _evictionTimer; 1204 Timer _evictionTimer;
1205 bool _shutdown; // Has this HTTP client been shutdown? 1205 bool _shutdown; // Has this HTTP client been shutdown?
1206 } 1206 }
OLDNEW
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/io.dart » ('j') | runtime/bin/io.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698