| 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 #ifndef VM_JSON_STREAM_H_ | 5 #ifndef VM_JSON_STREAM_H_ |
| 6 #define VM_JSON_STREAM_H_ | 6 #define VM_JSON_STREAM_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" // for Dart_Port | 8 #include "include/dart_api.h" // for Dart_Port |
| 9 #include "platform/json.h" | 9 #include "platform/json.h" |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // - runtime/vm/service/vmservice.dart | 35 // - runtime/vm/service/vmservice.dart |
| 36 // - runtime/observatory/lib/src/service/object.dart | 36 // - runtime/observatory/lib/src/service/object.dart |
| 37 // | 37 // |
| 38 enum JSONRpcErrorCode { | 38 enum JSONRpcErrorCode { |
| 39 kParseError = -32700, | 39 kParseError = -32700, |
| 40 kInvalidRequest = -32600, | 40 kInvalidRequest = -32600, |
| 41 kMethodNotFound = -32601, | 41 kMethodNotFound = -32601, |
| 42 kInvalidParams = -32602, | 42 kInvalidParams = -32602, |
| 43 kInternalError = -32603, | 43 kInternalError = -32603, |
| 44 | 44 |
| 45 kExtensionError = -32000, |
| 46 |
| 45 kFeatureDisabled = 100, | 47 kFeatureDisabled = 100, |
| 46 kVMMustBePaused = 101, | 48 kVMMustBePaused = 101, |
| 47 kCannotAddBreakpoint = 102, | 49 kCannotAddBreakpoint = 102, |
| 48 kStreamAlreadySubscribed = 103, | 50 kStreamAlreadySubscribed = 103, |
| 49 kStreamNotSubscribed = 104, | 51 kStreamNotSubscribed = 104, |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 | 54 |
| 53 class JSONStream : ValueObject { | 55 class JSONStream : ValueObject { |
| 54 public: | 56 public: |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 | 327 |
| 326 friend class JSONObject; | 328 friend class JSONObject; |
| 327 | 329 |
| 328 DISALLOW_ALLOCATION(); | 330 DISALLOW_ALLOCATION(); |
| 329 DISALLOW_COPY_AND_ASSIGN(JSONArray); | 331 DISALLOW_COPY_AND_ASSIGN(JSONArray); |
| 330 }; | 332 }; |
| 331 | 333 |
| 332 } // namespace dart | 334 } // namespace dart |
| 333 | 335 |
| 334 #endif // VM_JSON_STREAM_H_ | 336 #endif // VM_JSON_STREAM_H_ |
| OLD | NEW |