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

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

Issue 10826233: Add _android files for building DartVM on Android (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporate reviewer's feedback (asiva, Soren Gjesse) Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/dbg_connection.h ('k') | runtime/bin/dbg_connection_android.cc » ('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_DBG_CONNECTION_LINUX_H_ 5 #ifndef BIN_DBG_CONNECTION_ANDROID_H_
6 #define BIN_DBG_CONNECTION_LINUX_H_ 6 #define BIN_DBG_CONNECTION_ANDROID_H_
7 7
8 #include <arpa/inet.h> 8 #include <arpa/inet.h>
9 #include <netdb.h> 9 #include <netdb.h>
10 #include <sys/socket.h> 10 #include <sys/socket.h>
11 11
12 12
13 class DebuggerConnectionImpl { 13 class DebuggerConnectionImpl {
14 public: 14 public:
15 static void StartHandler(int port_number); 15 static void StartHandler(int port_number);
16 16
17 private: 17 private:
18 static void SetupPollQueue(); 18 static void SetupPollQueue();
19 static void HandleEvent(struct epoll_event* event); 19 static void HandleEvent(struct epoll_event* event);
20 static void Handler(uword args); 20 static void Handler(uword args);
21 21
22 // File descriptors for pipes used to communicate with the debugger thread. 22 // File descriptors for pipes used to communicate with the debugger thread.
23 static int wakeup_fds_[2]; 23 static int wakeup_fds_[2];
24 24
25 // File descriptor for the polling queue. 25 // File descriptor for the polling queue.
26 static int epoll_fd_; 26 static int epoll_fd_;
27 }; 27 };
28 28
29 #endif // BIN_DBG_CONNECTION_LINUX_H_ 29 #endif // BIN_DBG_CONNECTION_ANDROID_H_
OLDNEW
« no previous file with comments | « runtime/bin/dbg_connection.h ('k') | runtime/bin/dbg_connection_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698