OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "io.dart"; | 5 part of "dart:io"; |
6 | 6 |
7 const String _DART_SESSION_ID = "DARTSESSID"; | 7 const String _DART_SESSION_ID = "DARTSESSID"; |
8 | 8 |
9 // A _HttpSession is a node in a double-linked list, with _next and _prev being | 9 // A _HttpSession is a node in a double-linked list, with _next and _prev being |
10 // the previous and next pointers. | 10 // the previous and next pointers. |
11 class _HttpSession implements HttpSession { | 11 class _HttpSession implements HttpSession { |
12 // Destroyed marked. Used by the http connection to see if a session is valid. | 12 // Destroyed marked. Used by the http connection to see if a session is valid. |
13 bool _destroyed = false; | 13 bool _destroyed = false; |
14 bool _isNew = true; | 14 bool _isNew = true; |
15 DateTime _lastSeen; | 15 DateTime _lastSeen; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 } | 176 } |
177 | 177 |
178 void _stopTimer() { | 178 void _stopTimer() { |
179 if (_timer != null) { | 179 if (_timer != null) { |
180 _timer.cancel(); | 180 _timer.cancel(); |
181 _timer = null; | 181 _timer = null; |
182 } | 182 } |
183 } | 183 } |
184 } | 184 } |
OLD | NEW |