OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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._vmservice; | 5 library dart._vmservice; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:convert'; | 9 import 'dart:convert'; |
10 import 'dart:developer' show ServiceProtocolInfo; | 10 import 'dart:developer' show ServiceProtocolInfo; |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 // Return the port we expect isolate control messages on. | 473 // Return the port we expect isolate control messages on. |
474 return isolateControlPort; | 474 return isolateControlPort; |
475 } | 475 } |
476 | 476 |
477 void _registerIsolate(int port_id, SendPort sp, String name) { | 477 void _registerIsolate(int port_id, SendPort sp, String name) { |
478 var service = new VMService(); | 478 var service = new VMService(); |
479 service.runningIsolates.isolateStartup(port_id, sp, name); | 479 service.runningIsolates.isolateStartup(port_id, sp, name); |
480 } | 480 } |
481 | 481 |
482 /// Notify the VM that the service is running. | 482 /// Notify the VM that the service is running. |
483 external void _onStart(); | 483 void _onStart() native "VMService_OnStart"; |
484 | 484 |
485 /// Notify the VM that the service is no longer running. | 485 /// Notify the VM that the service is no longer running. |
486 external void _onExit(); | 486 void _onExit() native "VMService_OnExit"; |
487 | 487 |
488 /// Notify the VM that the server's address has changed. | 488 /// Notify the VM that the server's address has changed. |
489 external void onServerAddressChange(String address); | 489 void onServerAddressChange(String address) |
| 490 native "VMService_OnServerAddressChange"; |
490 | 491 |
491 /// Subscribe to a service stream. | 492 /// Subscribe to a service stream. |
492 external bool _vmListenStream(String streamId); | 493 bool _vmListenStream(String streamId) native "VMService_ListenStream"; |
493 | 494 |
494 /// Cancel a subscription to a service stream. | 495 /// Cancel a subscription to a service stream. |
495 external void _vmCancelStream(String streamId); | 496 void _vmCancelStream(String streamId) native "VMService_CancelStream"; |
496 | 497 |
497 /// Get the bytes to the tar archive. | 498 /// Get the bytes to the tar archive. |
498 external Uint8List _requestAssets(); | 499 Uint8List _requestAssets() native "VMService_RequestAssets"; |
499 | 500 |
500 /// Notify the vm service that an isolate has been spawned via rpc. | 501 /// Notify the vm service that an isolate has been spawned via rpc. |
501 external void _spawnUriNotify(obj, String token); | 502 void _spawnUriNotify(obj, String token) native "VMService_spawnUriNotify"; |
OLD | NEW |