| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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_BASE_H_ | 5 #ifndef RUNTIME_BIN_SOCKET_BASE_H_ |
| 6 #define RUNTIME_BIN_SOCKET_BASE_H_ | 6 #define RUNTIME_BIN_SOCKET_BASE_H_ |
| 7 | 7 |
| 8 #if defined(DART_IO_DISABLED) | |
| 9 #error "socket_base.h can only be included on builds with IO enabled" | |
| 10 #endif | |
| 11 | |
| 12 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 13 // Declare the OS-specific types ahead of defining the generic class. | 9 // Declare the OS-specific types ahead of defining the generic class. |
| 14 #if defined(HOST_OS_ANDROID) | 10 #if defined(HOST_OS_ANDROID) |
| 15 #include "bin/socket_base_android.h" | 11 #include "bin/socket_base_android.h" |
| 16 #elif defined(HOST_OS_FUCHSIA) | 12 #elif defined(HOST_OS_FUCHSIA) |
| 17 #include "bin/socket_base_fuchsia.h" | 13 #include "bin/socket_base_fuchsia.h" |
| 18 #elif defined(HOST_OS_LINUX) | 14 #elif defined(HOST_OS_LINUX) |
| 19 #include "bin/socket_base_linux.h" | 15 #include "bin/socket_base_linux.h" |
| 20 #elif defined(HOST_OS_MACOS) | 16 #elif defined(HOST_OS_MACOS) |
| 21 #include "bin/socket_base_macos.h" | 17 #include "bin/socket_base_macos.h" |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 214 |
| 219 private: | 215 private: |
| 220 DISALLOW_ALLOCATION(); | 216 DISALLOW_ALLOCATION(); |
| 221 DISALLOW_IMPLICIT_CONSTRUCTORS(SocketBase); | 217 DISALLOW_IMPLICIT_CONSTRUCTORS(SocketBase); |
| 222 }; | 218 }; |
| 223 | 219 |
| 224 } // namespace bin | 220 } // namespace bin |
| 225 } // namespace dart | 221 } // namespace dart |
| 226 | 222 |
| 227 #endif // RUNTIME_BIN_SOCKET_BASE_H_ | 223 #endif // RUNTIME_BIN_SOCKET_BASE_H_ |
| OLD | NEW |