OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ | 5 #ifndef NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ |
6 #define NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ | 6 #define NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ |
7 | 7 |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <sys/queue.h> | 9 #include <sys/queue.h> |
10 #include <map> | 10 #include <map> |
(...skipping 16 matching lines...) Expand all Loading... |
27 // A structure called 'EventRecorder' will exist when | 27 // A structure called 'EventRecorder' will exist when |
28 // the macro is defined. See the EventRecorder class interface | 28 // the macro is defined. See the EventRecorder class interface |
29 // within the EpollServer class for more details. | 29 // within the EpollServer class for more details. |
30 #ifdef EPOLL_SERVER_EVENT_TRACING | 30 #ifdef EPOLL_SERVER_EVENT_TRACING |
31 #include <ostream> | 31 #include <ostream> |
32 #include "base/logging.h" | 32 #include "base/logging.h" |
33 #endif | 33 #endif |
34 | 34 |
35 #include "base/basictypes.h" | 35 #include "base/basictypes.h" |
36 #include "base/compiler_specific.h" | 36 #include "base/compiler_specific.h" |
37 #include "base/hash_tables.h" | 37 #include "base/containers/hash_tables.h" |
38 #include "base/memory/scoped_ptr.h" | 38 #include "base/memory/scoped_ptr.h" |
39 #include <sys/epoll.h> | 39 #include <sys/epoll.h> |
40 | 40 |
41 namespace net { | 41 namespace net { |
42 | 42 |
43 class EpollServer; | 43 class EpollServer; |
44 class EpollAlarmCallbackInterface; | 44 class EpollAlarmCallbackInterface; |
45 class ReadPipeCallback; | 45 class ReadPipeCallback; |
46 | 46 |
47 struct EpollEvent { | 47 struct EpollEvent { |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 private: | 1045 private: |
1046 EpollServer::AlarmRegToken token_; | 1046 EpollServer::AlarmRegToken token_; |
1047 EpollServer* eps_; | 1047 EpollServer* eps_; |
1048 bool registered_; | 1048 bool registered_; |
1049 }; | 1049 }; |
1050 | 1050 |
1051 } // namespace net | 1051 } // namespace net |
1052 | 1052 |
1053 #endif // NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ | 1053 #endif // NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ |
1054 | 1054 |
OLD | NEW |