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

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

Issue 192443004: Complete the switch to ServiceObject (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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/json.h" 9 #include "platform/json.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void PrintProperty(const char* name, double d); 85 void PrintProperty(const char* name, double d);
86 void PrintProperty(const char* name, const char* s); 86 void PrintProperty(const char* name, const char* s);
87 void PrintfProperty(const char* name, const char* format, ...) 87 void PrintfProperty(const char* name, const char* format, ...)
88 PRINTF_ATTRIBUTE(3, 4); 88 PRINTF_ATTRIBUTE(3, 4);
89 void PrintProperty(const char* name, const Object& o, bool ref = true); 89 void PrintProperty(const char* name, const Object& o, bool ref = true);
90 90
91 void PrintPropertyName(const char* name); 91 void PrintPropertyName(const char* name);
92 void PrintCommaIfNeeded(); 92 void PrintCommaIfNeeded();
93 bool NeedComma(); 93 bool NeedComma();
94 94
95 void AddEscapedUTF8String(const char* s);
96
95 intptr_t nesting_level() const { return open_objects_; } 97 intptr_t nesting_level() const { return open_objects_; }
96 98
97 intptr_t open_objects_; 99 intptr_t open_objects_;
98 TextBuffer buffer_; 100 TextBuffer buffer_;
99 Dart_Port reply_port_; 101 Dart_Port reply_port_;
100 const char* command_; 102 const char* command_;
101 const char** arguments_; 103 const char** arguments_;
102 intptr_t num_arguments_; 104 intptr_t num_arguments_;
103 const char** option_keys_; 105 const char** option_keys_;
104 const char** option_values_; 106 const char** option_values_;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 190
189 friend class JSONObject; 191 friend class JSONObject;
190 192
191 DISALLOW_ALLOCATION(); 193 DISALLOW_ALLOCATION();
192 DISALLOW_COPY_AND_ASSIGN(JSONArray); 194 DISALLOW_COPY_AND_ASSIGN(JSONArray);
193 }; 195 };
194 196
195 } // namespace dart 197 } // namespace dart
196 198
197 #endif // VM_JSON_STREAM_H_ 199 #endif // VM_JSON_STREAM_H_
OLDNEW
« no previous file with comments | « runtime/vm/coverage.cc ('k') | runtime/vm/json_stream.cc » ('j') | runtime/vm/json_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698