OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 "developer.dart"; | 5 part of "dart:developer"; |
6 | 6 |
7 /// Service protocol is the protocol that a client like the observatory | 7 /// Service protocol is the protocol that a client like the observatory |
8 /// could use to access the services provided by the Dart VM for | 8 /// could use to access the services provided by the Dart VM for |
9 /// debugging and inspecting Dart programs. This class encapsulates the | 9 /// debugging and inspecting Dart programs. This class encapsulates the |
10 /// version number and Uri for accessing this service. | 10 /// version number and Uri for accessing this service. |
11 class ServiceProtocolInfo { | 11 class ServiceProtocolInfo { |
12 /// The major version of the protocol. If the running Dart environment does | 12 /// The major version of the protocol. If the running Dart environment does |
13 /// not support the service protocol, this is 0. | 13 /// not support the service protocol, this is 0. |
14 final int majorVersion = _getServiceMajorVersion(); | 14 final int majorVersion = _getServiceMajorVersion(); |
15 | 15 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 external void _webServerControl(SendPort sendPort, bool enable); | 93 external void _webServerControl(SendPort sendPort, bool enable); |
94 | 94 |
95 /// Returns the major version of the service protocol. | 95 /// Returns the major version of the service protocol. |
96 external int _getServiceMajorVersion(); | 96 external int _getServiceMajorVersion(); |
97 | 97 |
98 /// Returns the minor version of the service protocol. | 98 /// Returns the minor version of the service protocol. |
99 external int _getServiceMinorVersion(); | 99 external int _getServiceMinorVersion(); |
100 | 100 |
101 /// Returns the service id for the isolate that owns [sendPort]. | 101 /// Returns the service id for the isolate that owns [sendPort]. |
102 external String _getIsolateIDFromSendPort(SendPort sendPort); | 102 external String _getIsolateIDFromSendPort(SendPort sendPort); |
OLD | NEW |