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

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

Issue 1276903004: Add timeline stream control and trace retrieval to the dart embedder api. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void set_id_zone(ServiceIdZone* id_zone) { 70 void set_id_zone(ServiceIdZone* id_zone) {
71 id_zone_ = id_zone; 71 id_zone_ = id_zone;
72 } 72 }
73 ServiceIdZone* id_zone() { 73 ServiceIdZone* id_zone() {
74 return id_zone_; 74 return id_zone_;
75 } 75 }
76 76
77 TextBuffer* buffer() { return &buffer_; } 77 TextBuffer* buffer() { return &buffer_; }
78 const char* ToCString() { return buffer_.buf(); } 78 const char* ToCString() { return buffer_.buf(); }
79 79
80 void Steal(const char** buffer, intptr_t* buffer_length);
81
80 void set_reply_port(Dart_Port port); 82 void set_reply_port(Dart_Port port);
81 83
82 void SetParams(const char** param_keys, const char** param_values, 84 void SetParams(const char** param_keys, const char** param_values,
83 intptr_t num_params); 85 intptr_t num_params);
84 86
85 Dart_Port reply_port() const { return reply_port_; } 87 Dart_Port reply_port() const { return reply_port_; }
86 88
87 intptr_t num_params() const { return num_params_; } 89 intptr_t num_params() const { return num_params_; }
88 const char* GetParamKey(intptr_t i) const { 90 const char* GetParamKey(intptr_t i) const {
89 return param_keys_[i]; 91 return param_keys_[i];
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 324
323 friend class JSONObject; 325 friend class JSONObject;
324 326
325 DISALLOW_ALLOCATION(); 327 DISALLOW_ALLOCATION();
326 DISALLOW_COPY_AND_ASSIGN(JSONArray); 328 DISALLOW_COPY_AND_ASSIGN(JSONArray);
327 }; 329 };
328 330
329 } // namespace dart 331 } // namespace dart
330 332
331 #endif // VM_JSON_STREAM_H_ 333 #endif // VM_JSON_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698