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

Unified Diff: runtime/vm/json_stream.cc

Issue 131973007: Allow root level requests in the vm service. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.cc
===================================================================
--- runtime/vm/json_stream.cc (revision 31848)
+++ runtime/vm/json_stream.cc (working copy)
@@ -10,13 +10,15 @@
namespace dart {
-JSONStream::JSONStream(intptr_t buf_size) : buffer_(buf_size) {
- open_objects_ = 0;
- arguments_ = NULL;
- num_arguments_ = 0;
- option_keys_ = NULL;
- option_values_ = NULL;
- num_options_ = 0;
+JSONStream::JSONStream(intptr_t buf_size)
+ : open_objects_(0),
+ buffer_(buf_size),
+ reply_port_(ILLEGAL_PORT),
+ arguments_(NULL),
+ num_arguments_(0),
+ option_keys_(NULL),
+ option_values_(NULL),
+ num_options_(0) {
}
@@ -181,6 +183,11 @@
}
+void JSONStream::set_reply_port(Dart_Port port) {
+ reply_port_ = port;
+}
+
+
void JSONStream::SetArguments(const char** arguments, intptr_t num_arguments) {
arguments_ = arguments;
num_arguments_ = num_arguments;
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698