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

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

Issue 1537523002: Add dart:developer.postEvent for posting events to the service protocol from Dart code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SERVICE_H_ 5 #ifndef VM_SERVICE_H_
6 #define VM_SERVICE_H_ 6 #define VM_SERVICE_H_
7 7
8 #include "include/dart_tools_api.h" 8 #include "include/dart_tools_api.h"
9 9
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 static void SendLogEvent(Isolate* isolate, 117 static void SendLogEvent(Isolate* isolate,
118 int64_t sequence_number, 118 int64_t sequence_number,
119 int64_t timestamp, 119 int64_t timestamp,
120 intptr_t level, 120 intptr_t level,
121 const String& name, 121 const String& name,
122 const String& message, 122 const String& message,
123 const Instance& zone, 123 const Instance& zone,
124 const Object& error, 124 const Object& error,
125 const Instance& stack_trace); 125 const Instance& stack_trace);
126 126
127 static void SendExtensionEvent(Isolate* isolate,
128 const String& event_kind,
129 const String& event_data);
130
127 static void PostError(const String& method_name, 131 static void PostError(const String& method_name,
128 const Array& parameter_keys, 132 const Array& parameter_keys,
129 const Array& parameter_values, 133 const Array& parameter_values,
130 const Instance& reply_port, 134 const Instance& reply_port,
131 const Instance& id, 135 const Instance& id,
132 const Error& error); 136 const Error& error);
133 137
134 // Well-known streams. 138 // Well-known streams.
135 static StreamInfo vm_stream; 139 static StreamInfo vm_stream;
136 static StreamInfo isolate_stream; 140 static StreamInfo isolate_stream;
137 static StreamInfo debug_stream; 141 static StreamInfo debug_stream;
138 static StreamInfo gc_stream; 142 static StreamInfo gc_stream;
139 static StreamInfo echo_stream; 143 static StreamInfo echo_stream;
140 static StreamInfo graph_stream; 144 static StreamInfo graph_stream;
141 static StreamInfo logging_stream; 145 static StreamInfo logging_stream;
146 static StreamInfo extension_stream;
142 147
143 static bool ListenStream(const char* stream_id); 148 static bool ListenStream(const char* stream_id);
144 static void CancelStream(const char* stream_id); 149 static void CancelStream(const char* stream_id);
145 150
146 static RawObject* RequestAssets(); 151 static RawObject* RequestAssets();
147 152
148 static Dart_ServiceStreamListenCallback stream_listen_callback() { 153 static Dart_ServiceStreamListenCallback stream_listen_callback() {
149 return stream_listen_callback_; 154 return stream_listen_callback_;
150 } 155 }
151 static Dart_ServiceStreamCancelCallback stream_cancel_callback() { 156 static Dart_ServiceStreamCancelCallback stream_cancel_callback() {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 static bool needs_isolate_events_; 197 static bool needs_isolate_events_;
193 static bool needs_debug_events_; 198 static bool needs_debug_events_;
194 static bool needs_gc_events_; 199 static bool needs_gc_events_;
195 static bool needs_echo_events_; 200 static bool needs_echo_events_;
196 static bool needs_graph_events_; 201 static bool needs_graph_events_;
197 }; 202 };
198 203
199 } // namespace dart 204 } // namespace dart
200 205
201 #endif // VM_SERVICE_H_ 206 #endif // VM_SERVICE_H_
OLDNEW
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698