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_H_ | 5 #ifndef BIN_DBG_CONNECTION_H_ |
6 #define BIN_DBG_CONNECTION_H_ | 6 #define BIN_DBG_CONNECTION_H_ |
7 | 7 |
8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
10 | 10 |
11 #include "include/dart_debugger_api.h" | 11 #include "include/dart_debugger_api.h" |
12 | 12 |
13 #include "platform/globals.h" | 13 #include "platform/globals.h" |
14 #include "platform/json.h" | 14 #include "platform/json.h" |
15 #include "platform/thread.h" | 15 #include "platform/thread.h" |
16 // Declare the OS-specific types ahead of defining the generic class. | 16 // Declare the OS-specific types ahead of defining the generic class. |
17 #if defined(TARGET_OS_LINUX) | 17 #if defined(TARGET_OS_ANDROID) |
| 18 #include "bin/dbg_connection_android.h" |
| 19 #elif defined(TARGET_OS_LINUX) |
18 #include "bin/dbg_connection_linux.h" | 20 #include "bin/dbg_connection_linux.h" |
19 #elif defined(TARGET_OS_MACOS) | 21 #elif defined(TARGET_OS_MACOS) |
20 #include "bin/dbg_connection_macos.h" | 22 #include "bin/dbg_connection_macos.h" |
21 #elif defined(TARGET_OS_WINDOWS) | 23 #elif defined(TARGET_OS_WINDOWS) |
22 #include "bin/dbg_connection_win.h" | 24 #include "bin/dbg_connection_win.h" |
23 #else | 25 #else |
24 #error Unknown target os. | 26 #error Unknown target os. |
25 #endif | 27 #endif |
26 | 28 |
27 | 29 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 100 |
99 static MessageBuffer* msgbuf_; | 101 static MessageBuffer* msgbuf_; |
100 | 102 |
101 friend class DebuggerConnectionImpl; | 103 friend class DebuggerConnectionImpl; |
102 | 104 |
103 DISALLOW_ALLOCATION(); | 105 DISALLOW_ALLOCATION(); |
104 DISALLOW_IMPLICIT_CONSTRUCTORS(DebuggerConnectionHandler); | 106 DISALLOW_IMPLICIT_CONSTRUCTORS(DebuggerConnectionHandler); |
105 }; | 107 }; |
106 | 108 |
107 #endif // BIN_DBG_CONNECTION_H_ | 109 #endif // BIN_DBG_CONNECTION_H_ |
OLD | NEW |