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

Side by Side Diff: runtime/bin/eventhandler.h

Issue 171503009: Remove SocketData and now only pass the dart port to epoll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « no previous file | runtime/bin/eventhandler_android.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 BIN_EVENTHANDLER_H_ 5 #ifndef BIN_EVENTHANDLER_H_
6 #define BIN_EVENTHANDLER_H_ 6 #define BIN_EVENTHANDLER_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/isolate_data.h" 9 #include "bin/isolate_data.h"
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 #else 98 #else
99 #error Unknown target os. 99 #error Unknown target os.
100 #endif 100 #endif
101 101
102 namespace dart { 102 namespace dart {
103 namespace bin { 103 namespace bin {
104 104
105 class EventHandler { 105 class EventHandler {
106 public: 106 public:
107 void SendData(intptr_t id, Dart_Port dart_port, int64_t data) { 107 void SendData(intptr_t id, Dart_Port dart_port, int64_t data) {
108 delegate_.SendData(id, dart_port, data); 108 delegate_.Notify(id, dart_port, data);
109 } 109 }
110 110
111 /** 111 /**
112 * Start the event-handler. 112 * Start the event-handler.
113 */ 113 */
114 static void Start(); 114 static void Start();
115 115
116 /** 116 /**
117 * Stop the event-handler. It's expected that there will be no further calls 117 * Stop the event-handler. It's expected that there will be no further calls
118 * to SendData after a call to Stop. 118 * to SendData after a call to Stop.
119 */ 119 */
120 static void Stop(); 120 static void Stop();
121 121
122 static EventHandlerImplementation* delegate(); 122 static EventHandlerImplementation* delegate();
123 123
124 private: 124 private:
125 friend class EventHandlerImplementation; 125 friend class EventHandlerImplementation;
126 EventHandlerImplementation delegate_; 126 EventHandlerImplementation delegate_;
127 }; 127 };
128 128
129 } // namespace bin 129 } // namespace bin
130 } // namespace dart 130 } // namespace dart
131 131
132 #endif // BIN_EVENTHANDLER_H_ 132 #endif // BIN_EVENTHANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/eventhandler_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698