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

Unified Diff: runtime/vm/message_handler.h

Issue 979823003: Major rework of vm service events. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/message_handler.h
diff --git a/runtime/vm/message_handler.h b/runtime/vm/message_handler.h
index 0e0837731c8737b56f47d193134815f1fd6c8a24..a2a07bf007c84f5dc1fe39e968a49cb465711076 100644
--- a/runtime/vm/message_handler.h
+++ b/runtime/vm/message_handler.h
@@ -81,7 +81,7 @@ class MessageHandler {
bool paused_on_start() const {
// If pause_on_start_ is still set, tell the user we are paused,
// even if we haven't hit the pause point yet.
- return pause_on_start_;
+ return paused_on_start_;
}
bool pause_on_exit() const {
@@ -144,6 +144,9 @@ class MessageHandler {
// Returns true on success.
virtual bool HandleMessage(Message* message) = 0;
+ virtual void NotifyPauseOnStart() {}
+ virtual void NotifyPauseOnExit() {}
+
private:
friend class PortMap;
friend class MessageHandlerTestPeer;
@@ -167,6 +170,7 @@ class MessageHandler {
intptr_t paused_; // The number of pause messages received.
bool pause_on_start_;
bool pause_on_exit_;
+ bool paused_on_start_;
bool paused_on_exit_;
ThreadPool* pool_;
ThreadPool::Task* task_;
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698