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

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

Issue 354763004: - Implement Isolate.pause and Isolate.resume. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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
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"
11 11
12 namespace dart { 12 namespace dart {
13 13
14 class DebuggerEvent; 14 class DebuggerEvent;
15 class EmbedderServiceHandler; 15 class EmbedderServiceHandler;
16 class Instance; 16 class Instance;
17 class Isolate; 17 class Isolate;
18 class JSONStream; 18 class JSONStream;
19 class Array;
19 class RawInstance; 20 class RawInstance;
20 class String; 21 class String;
21 22
22 class Service : public AllStatic { 23 class Service : public AllStatic {
23 public: 24 public:
24 // Handles a message which is not directed to an isolate. 25 // Handles a message which is not directed to an isolate.
25 static void HandleRootMessage(const Instance& message); 26 static void HandleRootMessage(const Instance& message);
26 27
27 // Handles a message which is directed to a particular isolate. 28 // Handles a message which is directed to a particular isolate.
28 static void HandleIsolateMessage(Isolate* isolate, const Instance& message); 29 static void HandleIsolateMessage(Isolate* isolate, const Array& message);
29 30
30 static Isolate* GetServiceIsolate(void* callback_data); 31 static Isolate* GetServiceIsolate(void* callback_data);
31 static bool SendIsolateStartupMessage(); 32 static bool SendIsolateStartupMessage();
32 static bool SendIsolateShutdownMessage(); 33 static bool SendIsolateShutdownMessage();
33 34
34 static bool IsRunning() { 35 static bool IsRunning() {
35 return port_ != ILLEGAL_PORT; 36 return port_ != ILLEGAL_PORT;
36 } 37 }
37 38
38 static void SetEventMask(uint32_t mask); 39 static void SetEventMask(uint32_t mask);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 78
78 static Isolate* service_isolate_; 79 static Isolate* service_isolate_;
79 static Dart_LibraryTagHandler default_handler_; 80 static Dart_LibraryTagHandler default_handler_;
80 static Dart_Port port_; 81 static Dart_Port port_;
81 static uint32_t event_mask_; 82 static uint32_t event_mask_;
82 }; 83 };
83 84
84 } // namespace dart 85 } // namespace dart
85 86
86 #endif // VM_SERVICE_H_ 87 #endif // VM_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698