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

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

Issue 1299493007: Rework service extensions to be safe (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 24 matching lines...) Expand all
35 // - runtime/vm/service/vmservice.dart 35 // - runtime/vm/service/vmservice.dart
36 // - runtime/observatory/lib/src/service/object.dart 36 // - runtime/observatory/lib/src/service/object.dart
37 // 37 //
38 enum JSONRpcErrorCode { 38 enum JSONRpcErrorCode {
39 kParseError = -32700, 39 kParseError = -32700,
40 kInvalidRequest = -32600, 40 kInvalidRequest = -32600,
41 kMethodNotFound = -32601, 41 kMethodNotFound = -32601,
42 kInvalidParams = -32602, 42 kInvalidParams = -32602,
43 kInternalError = -32603, 43 kInternalError = -32603,
44 44
45 kExtensionError = -32000,
46
45 kFeatureDisabled = 100, 47 kFeatureDisabled = 100,
46 kVMMustBePaused = 101, 48 kVMMustBePaused = 101,
47 kCannotAddBreakpoint = 102, 49 kCannotAddBreakpoint = 102,
48 kStreamAlreadySubscribed = 103, 50 kStreamAlreadySubscribed = 103,
49 kStreamNotSubscribed = 104, 51 kStreamNotSubscribed = 104,
50 }; 52 };
51 53
52 54
53 class JSONStream : ValueObject { 55 class JSONStream : ValueObject {
54 public: 56 public:
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 327
326 friend class JSONObject; 328 friend class JSONObject;
327 329
328 DISALLOW_ALLOCATION(); 330 DISALLOW_ALLOCATION();
329 DISALLOW_COPY_AND_ASSIGN(JSONArray); 331 DISALLOW_COPY_AND_ASSIGN(JSONArray);
330 }; 332 };
331 333
332 } // namespace dart 334 } // namespace dart
333 335
334 #endif // VM_JSON_STREAM_H_ 336 #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