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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 kStreamAlreadySubscribed = 103, | 52 kStreamAlreadySubscribed = 103, |
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 }; | 63 }; |
63 | 64 |
64 // Expected that user_data is a JSONStream*. | 65 // Expected that user_data is a JSONStream*. |
65 void AppendJSONStreamConsumer(Dart_StreamConsumer_State state, | 66 void AppendJSONStreamConsumer(Dart_StreamConsumer_State state, |
66 const char* stream_name, | 67 const char* stream_name, |
67 const uint8_t* buffer, | 68 const uint8_t* buffer, |
68 intptr_t buffer_length, | 69 intptr_t buffer_length, |
69 void* user_data); | 70 void* user_data); |
70 | 71 |
71 class JSONStream : ValueObject { | 72 class JSONStream : ValueObject { |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 | 427 |
427 friend class JSONObject; | 428 friend class JSONObject; |
428 | 429 |
429 DISALLOW_ALLOCATION(); | 430 DISALLOW_ALLOCATION(); |
430 DISALLOW_COPY_AND_ASSIGN(JSONArray); | 431 DISALLOW_COPY_AND_ASSIGN(JSONArray); |
431 }; | 432 }; |
432 | 433 |
433 } // namespace dart | 434 } // namespace dart |
434 | 435 |
435 #endif // VM_JSON_STREAM_H_ | 436 #endif // VM_JSON_STREAM_H_ |
OLD | NEW |