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 part of "developer.dart"; | 5 part of "dart:developer"; |
6 | 6 |
7 /// A response to a service protocol extension RPC. | 7 /// A response to a service protocol extension RPC. |
8 /// | 8 /// |
9 /// If the RPC was successful, use [ServiceExtensionResponse.result], otherwise | 9 /// If the RPC was successful, use [ServiceExtensionResponse.result], otherwise |
10 /// use [ServiceExtensionResponse.error]. | 10 /// use [ServiceExtensionResponse.error]. |
11 class ServiceExtensionResponse { | 11 class ServiceExtensionResponse { |
12 final String _result; | 12 final String _result; |
13 final int _errorCode; | 13 final int _errorCode; |
14 final String _errorDetail; | 14 final String _errorDetail; |
15 | 15 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 external void _postEvent(String eventKind, String eventData); | 165 external void _postEvent(String eventKind, String eventData); |
166 | 166 |
167 // Both of these functions are written inside C++ to avoid updating the data | 167 // Both of these functions are written inside C++ to avoid updating the data |
168 // structures in Dart, getting an OOB, and observing stale state. Do not move | 168 // structures in Dart, getting an OOB, and observing stale state. Do not move |
169 // these into Dart code unless you can ensure that the operations will can be | 169 // these into Dart code unless you can ensure that the operations will can be |
170 // done atomically. Native code lives in vm/isolate.cc- | 170 // done atomically. Native code lives in vm/isolate.cc- |
171 // LookupServiceExtensionHandler and RegisterServiceExtensionHandler. | 171 // LookupServiceExtensionHandler and RegisterServiceExtensionHandler. |
172 external ServiceExtensionHandler _lookupExtension(String method); | 172 external ServiceExtensionHandler _lookupExtension(String method); |
173 external _registerExtension(String method, ServiceExtensionHandler handler); | 173 external _registerExtension(String method, ServiceExtensionHandler handler); |
OLD | NEW |