| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 kStreamNotSubscribed = 104, | 53 kStreamNotSubscribed = 104, |
| 54 kIsolateMustBeRunnable = 105, | 54 kIsolateMustBeRunnable = 105, |
| 55 kIsolateMustBePaused = 106, | 55 kIsolateMustBePaused = 106, |
| 56 | 56 |
| 57 // Experimental (used in private rpcs). | 57 // Experimental (used in private rpcs). |
| 58 kIsolateIsReloading = 1000, | 58 kIsolateIsReloading = 1000, |
| 59 kFileSystemAlreadyExists = 1001, | 59 kFileSystemAlreadyExists = 1001, |
| 60 kFileSystemDoesNotExist = 1002, | 60 kFileSystemDoesNotExist = 1002, |
| 61 kFileDoesNotExist = 1003, | 61 kFileDoesNotExist = 1003, |
| 62 kIsolateReloadFailed = 1004, | 62 kIsolateReloadFailed = 1004, |
| 63 kIsolateReloadBarred = 1005, |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 // Expected that user_data is a JSONStream*. | 66 // Expected that user_data is a JSONStream*. |
| 66 void AppendJSONStreamConsumer(Dart_StreamConsumer_State state, | 67 void AppendJSONStreamConsumer(Dart_StreamConsumer_State state, |
| 67 const char* stream_name, | 68 const char* stream_name, |
| 68 const uint8_t* buffer, | 69 const uint8_t* buffer, |
| 69 intptr_t buffer_length, | 70 intptr_t buffer_length, |
| 70 void* user_data); | 71 void* user_data); |
| 71 | 72 |
| 72 class JSONStream : ValueObject { | 73 class JSONStream : ValueObject { |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 | 428 |
| 428 friend class JSONObject; | 429 friend class JSONObject; |
| 429 | 430 |
| 430 DISALLOW_ALLOCATION(); | 431 DISALLOW_ALLOCATION(); |
| 431 DISALLOW_COPY_AND_ASSIGN(JSONArray); | 432 DISALLOW_COPY_AND_ASSIGN(JSONArray); |
| 432 }; | 433 }; |
| 433 | 434 |
| 434 } // namespace dart | 435 } // namespace dart |
| 435 | 436 |
| 436 #endif // VM_JSON_STREAM_H_ | 437 #endif // VM_JSON_STREAM_H_ |
| OLD | NEW |