| 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/text_buffer.h" | 9 #include "platform/text_buffer.h" |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 kInvalidParams = -32602, | 43 kInvalidParams = -32602, |
| 44 kInternalError = -32603, | 44 kInternalError = -32603, |
| 45 | 45 |
| 46 kExtensionError = -32000, | 46 kExtensionError = -32000, |
| 47 | 47 |
| 48 kFeatureDisabled = 100, | 48 kFeatureDisabled = 100, |
| 49 kVMMustBePaused = 101, | 49 kVMMustBePaused = 101, |
| 50 kCannotAddBreakpoint = 102, | 50 kCannotAddBreakpoint = 102, |
| 51 kStreamAlreadySubscribed = 103, | 51 kStreamAlreadySubscribed = 103, |
| 52 kStreamNotSubscribed = 104, | 52 kStreamNotSubscribed = 104, |
| 53 kIsolateMustBeRunnable = 105, |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 | 56 |
| 56 class JSONStream : ValueObject { | 57 class JSONStream : ValueObject { |
| 57 public: | 58 public: |
| 58 explicit JSONStream(intptr_t buf_size = 256); | 59 explicit JSONStream(intptr_t buf_size = 256); |
| 59 ~JSONStream(); | 60 ~JSONStream(); |
| 60 | 61 |
| 61 void Setup(Zone* zone, | 62 void Setup(Zone* zone, |
| 62 Dart_Port reply_port, | 63 Dart_Port reply_port, |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 | 377 |
| 377 friend class JSONObject; | 378 friend class JSONObject; |
| 378 | 379 |
| 379 DISALLOW_ALLOCATION(); | 380 DISALLOW_ALLOCATION(); |
| 380 DISALLOW_COPY_AND_ASSIGN(JSONArray); | 381 DISALLOW_COPY_AND_ASSIGN(JSONArray); |
| 381 }; | 382 }; |
| 382 | 383 |
| 383 } // namespace dart | 384 } // namespace dart |
| 384 | 385 |
| 385 #endif // VM_JSON_STREAM_H_ | 386 #endif // VM_JSON_STREAM_H_ |
| OLD | NEW |