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

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

Issue 2050393002: WIP: DevFS initial implementation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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/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/text_buffer.h" 9 #include "platform/text_buffer.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 kInternalError = -32603, 46 kInternalError = -32603,
47 47
48 kExtensionError = -32000, 48 kExtensionError = -32000,
49 49
50 kFeatureDisabled = 100, 50 kFeatureDisabled = 100,
51 kCannotAddBreakpoint = 102, 51 kCannotAddBreakpoint = 102,
52 kStreamAlreadySubscribed = 103, 52 kStreamAlreadySubscribed = 103,
53 kStreamNotSubscribed = 104, 53 kStreamNotSubscribed = 104,
54 kIsolateMustBeRunnable = 105, 54 kIsolateMustBeRunnable = 105,
55 kIsolateMustBePaused = 106, 55 kIsolateMustBePaused = 106,
56 kIsolateIsReloading = 107, 56
57 // Experimental (used in private rpcs).
58 kIsolateIsReloading = 1000,
59 kFileSystemAlreadyExists = 1001,
60 kFileSystemDoesNotExist = 1002,
61 kFileDoesNotExist = 1003,
57 }; 62 };
58 63
59 // Expected that user_data is a JSONStream*. 64 // Expected that user_data is a JSONStream*.
60 void AppendJSONStreamConsumer(Dart_StreamConsumer_State state, 65 void AppendJSONStreamConsumer(Dart_StreamConsumer_State state,
61 const char* stream_name, 66 const char* stream_name,
62 const uint8_t* buffer, 67 const uint8_t* buffer,
63 intptr_t buffer_length, 68 intptr_t buffer_length,
64 void* user_data); 69 void* user_data);
65 70
66 class JSONStream : ValueObject { 71 class JSONStream : ValueObject {
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 418
414 friend class JSONObject; 419 friend class JSONObject;
415 420
416 DISALLOW_ALLOCATION(); 421 DISALLOW_ALLOCATION();
417 DISALLOW_COPY_AND_ASSIGN(JSONArray); 422 DISALLOW_COPY_AND_ASSIGN(JSONArray);
418 }; 423 };
419 424
420 } // namespace dart 425 } // namespace dart
421 426
422 #endif // VM_JSON_STREAM_H_ 427 #endif // VM_JSON_STREAM_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698