Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_DBG_CONNECTION_LINUX_H_ | 5 #ifndef BIN_DBG_CONNECTION_LINUX_H_ |
| 6 #define BIN_DBG_CONNECTION_LINUX_H_ | 6 #define BIN_DBG_CONNECTION_LINUX_H_ |
| 7 | 7 |
|
siva
2012/06/20 00:53:31
extra blank line?
hausner
2012/06/20 16:05:58
Done.
| |
| 8 | |
| 8 #include <arpa/inet.h> | 9 #include <arpa/inet.h> |
| 9 #include <netdb.h> | 10 #include <netdb.h> |
| 10 #include <sys/socket.h> | 11 #include <sys/socket.h> |
| 11 | 12 |
| 12 | 13 |
| 13 class DebuggerConnectionImpl { | 14 class DebuggerConnectionImpl { |
| 14 public: | 15 public: |
| 15 static void StartHandler(int port_number); | 16 static void StartHandler(int port_number); |
| 17 | |
| 18 private: | |
| 19 static void SetupPollQueue(); | |
| 20 static void HandleEvent(struct epoll_event* event); | |
| 21 static void Handler(uword args); | |
| 22 | |
| 23 // File descriptors for pipes used to communicate with the debugger thread. | |
| 24 static int wakeup_fds_[2]; | |
| 25 | |
| 26 // File descriptor for the polling queue. | |
| 27 static int epoll_fd_; | |
| 16 }; | 28 }; |
| 17 | 29 |
| 18 #endif // BIN_DBG_CONNECTION_LINUX_H_ | 30 #endif // BIN_DBG_CONNECTION_LINUX_H_ |
| OLD | NEW |