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/service.h

Issue 823403004: Begin migrating the vm service from a rest-style interface to a json-rpc style interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove old-style standalone tests. 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/vm/profiler.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 14 matching lines...) Expand all
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 HandleRootMessage(const Instance& message); 32 static void HandleRootMessage(const Instance& message);
33 33
34 // Handles a message which is directed to a particular isolate. 34 // Handles a message which is directed to a particular isolate.
35 static void HandleIsolateMessageNew(Isolate* isolate, const Array& message);
35 static void HandleIsolateMessage(Isolate* isolate, const Array& message); 36 static void HandleIsolateMessage(Isolate* isolate, const Array& message);
36 37
37 static Isolate* GetServiceIsolate(void* callback_data); 38 static Isolate* GetServiceIsolate(void* callback_data);
38 static bool SendIsolateStartupMessage(); 39 static bool SendIsolateStartupMessage();
39 static bool SendIsolateShutdownMessage(); 40 static bool SendIsolateShutdownMessage();
40 41
41 static bool IsRunning(); 42 static bool IsRunning();
42 static void SetServicePort(Dart_Port port); 43 static void SetServicePort(Dart_Port port);
43 static void SetServiceIsolate(Isolate* isolate); 44 static void SetServiceIsolate(Isolate* isolate);
44 static bool HasServiceIsolate(); 45 static bool HasServiceIsolate();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 static bool initializing_; 118 static bool initializing_;
118 static Isolate* service_isolate_; 119 static Isolate* service_isolate_;
119 static Dart_Port service_port_; 120 static Dart_Port service_port_;
120 static Dart_Port load_port_; 121 static Dart_Port load_port_;
121 static uint32_t event_mask_; 122 static uint32_t event_mask_;
122 }; 123 };
123 124
124 } // namespace dart 125 } // namespace dart
125 126
126 #endif // VM_SERVICE_H_ 127 #endif // VM_SERVICE_H_
OLDNEW
« no previous file with comments | « runtime/vm/profiler.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698