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

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

Issue 14864009: Keep track of when a socket has been destroyed (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove delete_handle marker. Created 7 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) 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
11 namespace dart { 11 namespace dart {
12 namespace bin { 12 namespace bin {
13 13
14 // Flags used to provide information and actions to the eventhandler 14 // Flags used to provide information and actions to the eventhandler
15 // when sending a message about a file descriptor. These flags should 15 // when sending a message about a file descriptor. These flags should
16 // be kept in sync with the constants in socket_impl.dart. For more 16 // be kept in sync with the constants in socket_impl.dart. For more
17 // information see the comments in socket_impl.dart 17 // information see the comments in socket_impl.dart
18 enum MessageFlags { 18 enum MessageFlags {
19 kInEvent = 0, 19 kInEvent = 0,
20 kOutEvent = 1, 20 kOutEvent = 1,
21 kErrorEvent = 2, 21 kErrorEvent = 2,
22 kCloseEvent = 3, 22 kCloseEvent = 3,
23 kDestroyedEvent = 4,
23 kCloseCommand = 8, 24 kCloseCommand = 8,
24 kShutdownReadCommand = 9, 25 kShutdownReadCommand = 9,
25 kShutdownWriteCommand = 10, 26 kShutdownWriteCommand = 10,
26 kListeningSocket = 16, 27 kListeningSocket = 16,
27 kPipe = 17, 28 kPipe = 17,
28 }; 29 };
29 30
30 31
31 class TimeoutQueue { 32 class TimeoutQueue {
32 private: 33 private:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 private: 123 private:
123 friend class EventHandlerImplementation; 124 friend class EventHandlerImplementation;
124 EventHandlerImplementation delegate_; 125 EventHandlerImplementation delegate_;
125 }; 126 };
126 127
127 } // namespace bin 128 } // namespace bin
128 } // namespace dart 129 } // namespace dart
129 130
130 #endif // BIN_EVENTHANDLER_H_ 131 #endif // BIN_EVENTHANDLER_H_
OLDNEW
« no previous file with comments | « pkg/scheduled_test/lib/src/scheduled_server/safe_http_server.dart ('k') | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698