| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 RUNTIME_BIN_SOCKET_H_ | 5 #ifndef RUNTIME_BIN_SOCKET_H_ |
| 6 #define RUNTIME_BIN_SOCKET_H_ | 6 #define RUNTIME_BIN_SOCKET_H_ |
| 7 | 7 |
| 8 #if defined(DART_IO_DISABLED) | 8 #if defined(DART_IO_DISABLED) |
| 9 #error "socket.h can only be included on builds with IO enabled" | 9 #error "socket.h can only be included on builds with IO enabled" |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "platform/globals.h" | 12 #include "platform/globals.h" |
| 13 // Declare the OS-specific types ahead of defining the generic class. | 13 // Declare the OS-specific types ahead of defining the generic class. |
| 14 #if defined(TARGET_OS_ANDROID) | 14 #if defined(HOST_OS_ANDROID) |
| 15 #include "bin/socket_android.h" | 15 #include "bin/socket_android.h" |
| 16 #elif defined(TARGET_OS_FUCHSIA) | 16 #elif defined(HOST_OS_FUCHSIA) |
| 17 #include "bin/socket_fuchsia.h" | 17 #include "bin/socket_fuchsia.h" |
| 18 #elif defined(TARGET_OS_LINUX) | 18 #elif defined(HOST_OS_LINUX) |
| 19 #include "bin/socket_linux.h" | 19 #include "bin/socket_linux.h" |
| 20 #elif defined(TARGET_OS_MACOS) | 20 #elif defined(HOST_OS_MACOS) |
| 21 #include "bin/socket_macos.h" | 21 #include "bin/socket_macos.h" |
| 22 #elif defined(TARGET_OS_WINDOWS) | 22 #elif defined(HOST_OS_WINDOWS) |
| 23 #include "bin/socket_win.h" | 23 #include "bin/socket_win.h" |
| 24 #else | 24 #else |
| 25 #error Unknown target os. | 25 #error Unknown target os. |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 #include "bin/builtin.h" | 28 #include "bin/builtin.h" |
| 29 #include "bin/dartutils.h" | 29 #include "bin/dartutils.h" |
| 30 #include "bin/thread.h" | 30 #include "bin/thread.h" |
| 31 #include "bin/utils.h" | 31 #include "bin/utils.h" |
| 32 #include "platform/hashmap.h" | 32 #include "platform/hashmap.h" |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 477 |
| 478 Mutex* mutex_; | 478 Mutex* mutex_; |
| 479 | 479 |
| 480 DISALLOW_COPY_AND_ASSIGN(ListeningSocketRegistry); | 480 DISALLOW_COPY_AND_ASSIGN(ListeningSocketRegistry); |
| 481 }; | 481 }; |
| 482 | 482 |
| 483 } // namespace bin | 483 } // namespace bin |
| 484 } // namespace dart | 484 } // namespace dart |
| 485 | 485 |
| 486 #endif // RUNTIME_BIN_SOCKET_H_ | 486 #endif // RUNTIME_BIN_SOCKET_H_ |
| OLD | NEW |