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

Unified Diff: runtime/vm/json_stream.h

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/isolate.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.h
===================================================================
--- runtime/vm/json_stream.h (revision 31848)
+++ 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 set_reply_port(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_; }
+
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_;
« 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