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 library dart_controller_service_isolate; | 5 library sky_shell_dart_controller_service_isolate; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:mojo.io'; | 9 import 'dart:io'; |
10 import 'dart:isolate'; | 10 import 'dart:isolate'; |
11 import 'dart:vmservice'; | 11 import 'dart:vmservice'; |
12 | 12 |
13 part 'loader.dart'; | 13 part 'loader.dart'; |
14 part 'resources.dart'; | 14 part 'resources.dart'; |
15 part 'server.dart'; | 15 part 'server.dart'; |
16 | 16 |
17 // The TCP ip/port that the HTTP server listens on. | 17 // The TCP ip/port that the HTTP server listens on. |
18 int _port; | 18 int _port; |
19 String _ip; | 19 String _ip; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 } | 52 } |
53 scriptLoadPort.handler = _processLoadRequest; | 53 scriptLoadPort.handler = _processLoadRequest; |
54 // It's just here to push an event on the event loop so that we invoke the | 54 // It's just here to push an event on the event loop so that we invoke the |
55 // scheduled microtasks. | 55 // scheduled microtasks. |
56 Timer.run(() {}); | 56 Timer.run(() {}); |
57 return scriptLoadPort; | 57 return scriptLoadPort; |
58 } | 58 } |
59 | 59 |
60 _shutdown() native "ServiceIsolate_Shutdown"; | 60 _shutdown() native "ServiceIsolate_Shutdown"; |
OLD | NEW |