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

Unified Diff: runtime/vm/json_stream.h

Issue 2059883003: 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/json_stream.h
diff --git a/runtime/vm/json_stream.h b/runtime/vm/json_stream.h
index 3c77d4b1b3a31c13dc3be535aa70f02729f4b2a7..1dec0db802dd56eb8e49c1cee9eaedf561ab3acd 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -53,7 +53,12 @@ enum JSONRpcErrorCode {
kStreamNotSubscribed = 104,
kIsolateMustBeRunnable = 105,
kIsolateMustBePaused = 106,
- kIsolateIsReloading = 107,
+
+ // Experimental (used in private rpcs).
+ kIsolateIsReloading = 1000,
+ kFileSystemAlreadyExists = 1001,
+ kFileSystemDoesNotExist = 1002,
+ kFileDoesNotExist = 1003,
};
// Expected that user_data is a JSONStream*.
@@ -73,7 +78,8 @@ class JSONStream : ValueObject {
const Instance& seq,
const String& method,
const Array& param_keys,
- const Array& param_values);
+ const Array& param_values,
+ bool parameters_are_dart_objects = false);
void SetupError();
void PrintError(intptr_t code, const char* details_format, ...);
@@ -99,6 +105,11 @@ class JSONStream : ValueObject {
Dart_Port reply_port() const { return reply_port_; }
+ intptr_t NumObjectParameters() const;
+ RawObject* GetObjectParameterKey(intptr_t i) const;
+ RawObject* GetObjectParameterValue(intptr_t i) const;
+ RawObject* LookupObjectParam(const char* key) const;
+
intptr_t num_params() const { return num_params_; }
const char* GetParamKey(intptr_t i) const {
return param_keys_[i];
@@ -227,6 +238,8 @@ class JSONStream : ValueObject {
ServiceIdZone* id_zone_;
Dart_Port reply_port_;
Instance* seq_;
+ Array* parameter_keys_;
+ Array* parameter_values_;
const char* method_;
const char** param_keys_;
const char** param_values_;

Powered by Google App Engine
This is Rietveld 408576698