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

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

Issue 1093043004: Do not JSON encode the 'result' of a service rpc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 5 years, 8 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
« 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_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 // Handles a message which is not directed to an isolate. 28 // Handles a message which is not directed to an isolate.
29 static void HandleRootMessage(const Array& message); 29 static void HandleRootMessage(const Array& message);
30 30
31 // Handles a message which is directed to a particular isolate. 31 // Handles a message which is directed to a particular isolate.
32 static void HandleIsolateMessage(Isolate* isolate, const Array& message); 32 static void HandleIsolateMessage(Isolate* isolate, const Array& message);
33 33
34 static bool NeedsEvents(); 34 static bool NeedsEvents();
35 35
36 static void HandleEvent(ServiceEvent* event); 36 static void HandleEvent(ServiceEvent* event);
37 static void HandleGCEvent(GCEvent* event);
38 37
39 static void RegisterIsolateEmbedderCallback( 38 static void RegisterIsolateEmbedderCallback(
40 const char* name, 39 const char* name,
41 Dart_ServiceRequestCallback callback, 40 Dart_ServiceRequestCallback callback,
42 void* user_data); 41 void* user_data);
43 42
44 static void RegisterRootEmbedderCallback( 43 static void RegisterRootEmbedderCallback(
45 const char* name, 44 const char* name,
46 Dart_ServiceRequestCallback callback, 45 Dart_ServiceRequestCallback callback,
47 void* user_data); 46 void* user_data);
(...skipping 17 matching lines...) Expand all
65 const uint8_t* data, 64 const uint8_t* data,
66 intptr_t size); 65 intptr_t size);
67 66
68 static EmbedderServiceHandler* isolate_service_handler_head_; 67 static EmbedderServiceHandler* isolate_service_handler_head_;
69 static EmbedderServiceHandler* root_service_handler_head_; 68 static EmbedderServiceHandler* root_service_handler_head_;
70 }; 69 };
71 70
72 } // namespace dart 71 } // namespace dart
73 72
74 #endif // VM_SERVICE_H_ 73 #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