Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: runtime/vm/json_stream.h

Issue 2278613002: Do not allow a hot reload if the isolate has a sticky error (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Do not allow a hot reload if the isolate has a sticky error Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698