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

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

Issue 895943002: Support root-level json rpc requests in the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/observatory/lib/src/service/object.dart ('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 11 matching lines...) Expand all
22 class Object; 22 class Object;
23 class RawInstance; 23 class RawInstance;
24 class String; 24 class String;
25 25
26 class Service : public AllStatic { 26 class Service : public AllStatic {
27 public: 27 public:
28 static const char* kIsolateName; 28 static const char* kIsolateName;
29 static bool IsServiceIsolateName(const char* name); 29 static bool IsServiceIsolateName(const char* name);
30 30
31 // Handles a message which is not directed to an isolate. 31 // Handles a message which is not directed to an isolate.
32 static void HandleRootMessageNew(const Array& message);
32 static void HandleRootMessage(const Instance& message); 33 static void HandleRootMessage(const Instance& message);
33 34
34 // Handles a message which is directed to a particular isolate. 35 // Handles a message which is directed to a particular isolate.
35 static void HandleIsolateMessageNew(Isolate* isolate, const Array& message); 36 static void HandleIsolateMessageNew(Isolate* isolate, const Array& message);
36 static void HandleIsolateMessage(Isolate* isolate, const Array& message); 37 static void HandleIsolateMessage(Isolate* isolate, const Array& message);
37 38
38 static Isolate* GetServiceIsolate(void* callback_data); 39 static Isolate* GetServiceIsolate(void* callback_data);
39 static bool SendIsolateStartupMessage(); 40 static bool SendIsolateStartupMessage();
40 static bool SendIsolateShutdownMessage(); 41 static bool SendIsolateShutdownMessage();
41 42
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 static bool initializing_; 119 static bool initializing_;
119 static Isolate* service_isolate_; 120 static Isolate* service_isolate_;
120 static Dart_Port service_port_; 121 static Dart_Port service_port_;
121 static Dart_Port load_port_; 122 static Dart_Port load_port_;
122 static uint32_t event_mask_; 123 static uint32_t event_mask_;
123 }; 124 };
124 125
125 } // namespace dart 126 } // namespace dart
126 127
127 #endif // VM_SERVICE_H_ 128 #endif // VM_SERVICE_H_
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698