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

Unified Diff: runtime/bin/eventhandler.h

Issue 22901017: Always initialize the EventHandler in the standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Simplify impl and don't call Stop (other isolates may still be running). Created 7 years, 4 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 | « no previous file | runtime/bin/eventhandler.cc » ('j') | runtime/bin/eventhandler_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler.h
diff --git a/runtime/bin/eventhandler.h b/runtime/bin/eventhandler.h
index 8a2604303c8326e33cd6a4b83ca13db65f1a5e3a..a9b0bcd089693172d41346fe5ae0649511650880 100644
--- a/runtime/bin/eventhandler.h
+++ b/runtime/bin/eventhandler.h
@@ -108,16 +108,15 @@ class EventHandler {
delegate_.SendData(id, dart_port, data);
}
- void Shutdown() {
- delegate_.Shutdown();
- }
-
- static EventHandler* Start() {
- EventHandler* handler = new EventHandler();
- handler->delegate_.Start(handler);
- return handler;
- }
-
+ /**
+ * Start the event-handler.
+ */
+ static void Start();
+
+ /**
+ * Stop the event-handler. It's expected that there will be no further calls
+ * to SendData after a call to Stop.
+ */
static void Stop();
private:
« no previous file with comments | « no previous file | runtime/bin/eventhandler.cc » ('j') | runtime/bin/eventhandler_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698