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

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

Issue 1164463005: Rename some service protocol errors. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync 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/observatory/lib/src/service/object.dart ('k') | runtime/vm/json_stream.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"
11 #include "vm/service.h" 11 #include "vm/service.h"
12 12
13 namespace dart { 13 namespace dart {
14 14
15 class Array; 15 class Array;
16 class Field; 16 class Field;
17 class GrowableObjectArray; 17 class GrowableObjectArray;
18 class Instance; 18 class Instance;
19 class JSONArray; 19 class JSONArray;
20 class JSONObject; 20 class JSONObject;
21 class MessageQueue; 21 class MessageQueue;
22 class Metric; 22 class Metric;
23 class Object; 23 class Object;
24 class ServiceEvent; 24 class ServiceEvent;
25 class Breakpoint; 25 class Breakpoint;
26 class String; 26 class String;
27 class Zone; 27 class Zone;
28 28
29 29
30 // Keep this in sync with runtime/observatory/lib/src/service/object.dart.
30 enum JSONRpcErrorCode { 31 enum JSONRpcErrorCode {
31 kParseError = -32700, 32 kParseError = -32700,
32 kInvalidRequest = -32600, 33 kInvalidRequest = -32600,
33 kMethodNotFound = -32601, 34 kMethodNotFound = -32601,
34 kInvalidParams = -32602, 35 kInvalidParams = -32602,
35 kInternalError = -32603, 36 kInternalError = -32603,
36 37
37 kVMMustBePaused = 100, 38 kFeatureDisabled = 100,
38 kNoBreakAtLine = 101, 39 kVMMustBePaused = 101,
39 kNoBreakAtFunction = 102, 40 kCannotAddBreakpoint = 102,
40
41 kProfilingDisabled = 200,
42 }; 41 };
43 42
44 43
45 class JSONStream : ValueObject { 44 class JSONStream : ValueObject {
46 public: 45 public:
47 explicit JSONStream(intptr_t buf_size = 256); 46 explicit JSONStream(intptr_t buf_size = 256);
48 ~JSONStream(); 47 ~JSONStream();
49 48
50 void Setup(Zone* zone, 49 void Setup(Zone* zone,
51 Dart_Port reply_port, 50 Dart_Port reply_port,
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 285
287 friend class JSONObject; 286 friend class JSONObject;
288 287
289 DISALLOW_ALLOCATION(); 288 DISALLOW_ALLOCATION();
290 DISALLOW_COPY_AND_ASSIGN(JSONArray); 289 DISALLOW_COPY_AND_ASSIGN(JSONArray);
291 }; 290 };
292 291
293 } // namespace dart 292 } // namespace dart
294 293
295 #endif // VM_JSON_STREAM_H_ 294 #endif // VM_JSON_STREAM_H_
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698