Chromium Code Reviews| Index: runtime/vm/json_stream.h |
| =================================================================== |
| --- runtime/vm/json_stream.h (revision 31674) |
| +++ runtime/vm/json_stream.h (working copy) |
| @@ -5,6 +5,7 @@ |
| #ifndef VM_JSON_STREAM_H_ |
| #define VM_JSON_STREAM_H_ |
| +#include "include/dart_api.h" // for Dart_Port |
| #include "platform/json.h" |
| #include "vm/allocation.h" |
| @@ -25,10 +26,13 @@ |
| TextBuffer* buffer() { return &buffer_; } |
| const char* ToCString() { return buffer_.buf(); } |
| + void SetReplyPort(Dart_Port port); |
| void SetArguments(const char** arguments, intptr_t num_arguments); |
| void SetOptions(const char** option_keys, const char** option_values, |
| intptr_t num_options); |
| + Dart_Port reply_port() const { return reply_port_; } |
|
Cutch
2014/01/09 23:03:23
Should we be storing the port to reply to on the J
turnidge
2014/01/15 20:21:04
Discussed offline - we will fix later.
|
| + |
| intptr_t num_arguments() const { return num_arguments_; } |
| const char* GetArgument(intptr_t i) const { |
| return arguments_[i]; |
| @@ -77,6 +81,7 @@ |
| intptr_t open_objects_; |
| TextBuffer buffer_; |
| + Dart_Port reply_port_; |
| const char** arguments_; |
| intptr_t num_arguments_; |
| const char** option_keys_; |