OLD | NEW |
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 void AddEscapedUTF8String(const char* s, intptr_t len); | 166 void AddEscapedUTF8String(const char* s, intptr_t len); |
167 | 167 |
168 intptr_t nesting_level() const { return open_objects_; } | 168 intptr_t nesting_level() const { return open_objects_; } |
169 | 169 |
170 intptr_t open_objects_; | 170 intptr_t open_objects_; |
171 TextBuffer buffer_; | 171 TextBuffer buffer_; |
172 // Default service id zone. | 172 // Default service id zone. |
173 RingServiceIdZone default_id_zone_; | 173 RingServiceIdZone default_id_zone_; |
174 ServiceIdZone* id_zone_; | 174 ServiceIdZone* id_zone_; |
175 Dart_Port reply_port_; | 175 Dart_Port reply_port_; |
176 Instance& seq_; | 176 Instance* seq_; |
177 const char* method_; | 177 const char* method_; |
178 const char** param_keys_; | 178 const char** param_keys_; |
179 const char** param_values_; | 179 const char** param_values_; |
180 intptr_t num_params_; | 180 intptr_t num_params_; |
181 int64_t setup_time_micros_; | 181 int64_t setup_time_micros_; |
182 | 182 |
183 friend class JSONObject; | 183 friend class JSONObject; |
184 friend class JSONArray; | 184 friend class JSONArray; |
185 }; | 185 }; |
186 | 186 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 325 |
326 friend class JSONObject; | 326 friend class JSONObject; |
327 | 327 |
328 DISALLOW_ALLOCATION(); | 328 DISALLOW_ALLOCATION(); |
329 DISALLOW_COPY_AND_ASSIGN(JSONArray); | 329 DISALLOW_COPY_AND_ASSIGN(JSONArray); |
330 }; | 330 }; |
331 | 331 |
332 } // namespace dart | 332 } // namespace dart |
333 | 333 |
334 #endif // VM_JSON_STREAM_H_ | 334 #endif // VM_JSON_STREAM_H_ |
OLD | NEW |