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

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

Issue 1645423002: Return an error in many service RPCs if the isolate is not runnable (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/observatory/lib/src/service/object.dart ('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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698