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

Unified Diff: sdk/lib/io/http_impl.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/http_headers.dart ('k') | sdk/lib/io/http_session.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index c0d315c68a9bedc4cb4fa4276a4a81a9d4472081..6fe64163e1717b5b43231a87724a34dc8eede835 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -1755,7 +1755,7 @@ class _SocketConnection {
_socket.onData = _invalidate;
_socket.onClosed = _invalidate;
_socket.onError = (_) => _invalidate();
- _returnTime = new Date.now();
+ _returnTime = new DateTime.now();
_httpClientConnection = null;
}
@@ -1774,7 +1774,7 @@ class _SocketConnection {
_socket.close();
}
- Duration _idleTime(Date now) => now.difference(_returnTime);
+ Duration _idleTime(DateTime now) => now.difference(_returnTime);
bool get _fromPool => _returnTime != null;
@@ -1788,7 +1788,7 @@ class _SocketConnection {
String _host;
int _port;
Socket _socket;
- Date _returnTime;
+ DateTime _returnTime;
bool _valid = true;
HttpClientConnection _httpClientConnection;
}
@@ -2125,7 +2125,7 @@ class _HttpClient implements HttpClient {
// If there is currently no eviction timer start one.
if (_evictionTimer == null) {
void _handleEviction(Timer timer) {
- Date now = new Date.now();
+ DateTime now = new DateTime.now();
List<String> emptyKeys = new List<String>();
_openSockets.forEach(
(String key, Queue<_SocketConnection> connections) {
« no previous file with comments | « sdk/lib/io/http_headers.dart ('k') | sdk/lib/io/http_session.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698