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

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

Issue 1166433008: 2nd attempt at adding streamListen/streamCancel to the service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix context objects Created 5 years, 6 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/object.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/json.h" 9 #include "platform/json.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 10 matching lines...) Expand all
21 class MessageQueue; 21 class MessageQueue;
22 class Metric; 22 class Metric;
23 class Object; 23 class Object;
24 class Script; 24 class Script;
25 class ServiceEvent; 25 class ServiceEvent;
26 class Breakpoint; 26 class Breakpoint;
27 class String; 27 class String;
28 class Zone; 28 class Zone;
29 29
30 30
31 // Keep this in sync with runtime/observatory/lib/src/service/object.dart. 31 // Keep this enum in sync with:
32 //
33 // - runtime/vm/service/vmservice.dart
34 // - runtime/observatory/lib/src/service/object.dart
35 //
32 enum JSONRpcErrorCode { 36 enum JSONRpcErrorCode {
33 kParseError = -32700, 37 kParseError = -32700,
34 kInvalidRequest = -32600, 38 kInvalidRequest = -32600,
35 kMethodNotFound = -32601, 39 kMethodNotFound = -32601,
36 kInvalidParams = -32602, 40 kInvalidParams = -32602,
37 kInternalError = -32603, 41 kInternalError = -32603,
38 42
39 kFeatureDisabled = 100, 43 kFeatureDisabled = 100,
40 kVMMustBePaused = 101, 44 kVMMustBePaused = 101,
41 kCannotAddBreakpoint = 102, 45 kCannotAddBreakpoint = 102,
46 kStreamAlreadySubscribed = 103,
47 kStreamNotSubscribed = 104,
42 }; 48 };
43 49
44 50
45 class JSONStream : ValueObject { 51 class JSONStream : ValueObject {
46 public: 52 public:
47 explicit JSONStream(intptr_t buf_size = 256); 53 explicit JSONStream(intptr_t buf_size = 256);
48 ~JSONStream(); 54 ~JSONStream();
49 55
50 void Setup(Zone* zone, 56 void Setup(Zone* zone,
51 Dart_Port reply_port, 57 Dart_Port reply_port,
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 296
291 friend class JSONObject; 297 friend class JSONObject;
292 298
293 DISALLOW_ALLOCATION(); 299 DISALLOW_ALLOCATION();
294 DISALLOW_COPY_AND_ASSIGN(JSONArray); 300 DISALLOW_COPY_AND_ASSIGN(JSONArray);
295 }; 301 };
296 302
297 } // namespace dart 303 } // namespace dart
298 304
299 #endif // VM_JSON_STREAM_H_ 305 #endif // VM_JSON_STREAM_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698