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

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

Issue 1152283005: Revert "Add the streamListen and streamCancel rpcs to the vm service." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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.h » ('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 16 matching lines...) Expand all
27 class Zone; 27 class Zone;
28 28
29 29
30 enum JSONRpcErrorCode { 30 enum JSONRpcErrorCode {
31 kParseError = -32700, 31 kParseError = -32700,
32 kInvalidRequest = -32600, 32 kInvalidRequest = -32600,
33 kMethodNotFound = -32601, 33 kMethodNotFound = -32601,
34 kInvalidParams = -32602, 34 kInvalidParams = -32602,
35 kInternalError = -32603, 35 kInternalError = -32603,
36 36
37 // These must be kept in sync with vm/service/vmservice.dart. 37 kVMMustBePaused = 100,
38 kInvalidStream = 100, 38 kNoBreakAtLine = 101,
39 kStreamAlreadySubscribed = 101, 39 kNoBreakAtFunction = 102,
40 kStreamNotSubscribed = 102,
41 40
42 kVMMustBePaused = 200, 41 kProfilingDisabled = 200,
43 kNoBreakAtLine = 201,
44 kNoBreakAtFunction = 202,
45
46 kProfilingDisabled = 300,
47 }; 42 };
48 43
49 44
50 class JSONStream : ValueObject { 45 class JSONStream : ValueObject {
51 public: 46 public:
52 explicit JSONStream(intptr_t buf_size = 256); 47 explicit JSONStream(intptr_t buf_size = 256);
53 ~JSONStream(); 48 ~JSONStream();
54 49
55 void Setup(Zone* zone, 50 void Setup(Zone* zone,
56 Dart_Port reply_port, 51 Dart_Port reply_port,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 284
290 friend class JSONObject; 285 friend class JSONObject;
291 286
292 DISALLOW_ALLOCATION(); 287 DISALLOW_ALLOCATION();
293 DISALLOW_COPY_AND_ASSIGN(JSONArray); 288 DISALLOW_COPY_AND_ASSIGN(JSONArray);
294 }; 289 };
295 290
296 } // namespace dart 291 } // namespace dart
297 292
298 #endif // VM_JSON_STREAM_H_ 293 #endif // VM_JSON_STREAM_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698