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

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

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

Powered by Google App Engine
This is Rietveld 408576698