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

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

Issue 1839463002: Really remove io support when dart:io is unsupported. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « runtime/bin/secure_socket_unsupported.cc ('k') | runtime/bin/socket.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) 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 BIN_SOCKET_H_ 5 #ifndef BIN_SOCKET_H_
6 #define BIN_SOCKET_H_ 6 #define BIN_SOCKET_H_
7 7
8 #include <map> 8 #if defined(DART_IO_DISABLED)
Bill Hesse 2016/03/30 09:50:27 This error is being hit on Windows compilations of
9 #error "socket.h can only be included on builds with IO enabled"
10 #endif
9 11
10 #include "platform/globals.h" 12 #include "platform/globals.h"
11
12 #include "bin/builtin.h"
13 #include "bin/dartutils.h"
14 // Declare the OS-specific types ahead of defining the generic class. 13 // Declare the OS-specific types ahead of defining the generic class.
15 #if defined(TARGET_OS_ANDROID) 14 #if defined(TARGET_OS_ANDROID)
16 #include "bin/socket_android.h" 15 #include "bin/socket_android.h"
17 #elif defined(TARGET_OS_LINUX) 16 #elif defined(TARGET_OS_LINUX)
18 #include "bin/socket_linux.h" 17 #include "bin/socket_linux.h"
19 #elif defined(TARGET_OS_MACOS) 18 #elif defined(TARGET_OS_MACOS)
20 #include "bin/socket_macos.h" 19 #include "bin/socket_macos.h"
21 #elif defined(TARGET_OS_WINDOWS) 20 #elif defined(TARGET_OS_WINDOWS)
22 #include "bin/socket_win.h" 21 #include "bin/socket_win.h"
23 #else 22 #else
24 #error Unknown target os. 23 #error Unknown target os.
25 #endif 24 #endif
25
26 #include <map>
27
28 #include "bin/builtin.h"
29 #include "bin/dartutils.h"
26 #include "bin/thread.h" 30 #include "bin/thread.h"
27 #include "bin/utils.h" 31 #include "bin/utils.h"
28 32
29 namespace dart { 33 namespace dart {
30 namespace bin { 34 namespace bin {
31 35
32 union RawAddr { 36 union RawAddr {
33 struct sockaddr_in in; 37 struct sockaddr_in in;
34 struct sockaddr_in6 in6; 38 struct sockaddr_in6 in6;
35 struct sockaddr_storage ss; 39 struct sockaddr_storage ss;
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 typedef std::map<intptr_t, OSSocket*>::iterator SocketsIterator; 436 typedef std::map<intptr_t, OSSocket*>::iterator SocketsIterator;
433 437
434 private: 438 private:
435 DISALLOW_COPY_AND_ASSIGN(ListeningSocketRegistry); 439 DISALLOW_COPY_AND_ASSIGN(ListeningSocketRegistry);
436 }; 440 };
437 441
438 } // namespace bin 442 } // namespace bin
439 } // namespace dart 443 } // namespace dart
440 444
441 #endif // BIN_SOCKET_H_ 445 #endif // BIN_SOCKET_H_
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket_unsupported.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698