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

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

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
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 #if !defined(DART_IO_DISABLED)
6
7 #include "bin/socket.h"
8
5 #include "bin/dartutils.h" 9 #include "bin/dartutils.h"
6 #include "bin/io_buffer.h" 10 #include "bin/io_buffer.h"
7 #include "bin/isolate_data.h" 11 #include "bin/isolate_data.h"
8 #include "bin/lockers.h" 12 #include "bin/lockers.h"
9 #include "bin/socket.h"
10 #include "bin/thread.h" 13 #include "bin/thread.h"
11 #include "bin/utils.h" 14 #include "bin/utils.h"
12 15
16 #include "include/dart_api.h"
17
13 #include "platform/globals.h" 18 #include "platform/globals.h"
14 #include "platform/utils.h" 19 #include "platform/utils.h"
15 20
16 #include "include/dart_api.h"
17
18 namespace dart { 21 namespace dart {
19 namespace bin { 22 namespace bin {
20 23
21 static const int kSocketIdNativeField = 0; 24 static const int kSocketIdNativeField = 0;
22 25
23 26
24 ListeningSocketRegistry *globalTcpListeningSocketRegistry = NULL; 27 ListeningSocketRegistry *globalTcpListeningSocketRegistry = NULL;
25 28
26 29
27 void ListeningSocketRegistry::Initialize() { 30 void ListeningSocketRegistry::Initialize() {
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 Dart_Handle err = 870 Dart_Handle err =
868 Dart_GetNativeInstanceField(socket_obj, kSocketIdNativeField, &socket); 871 Dart_GetNativeInstanceField(socket_obj, kSocketIdNativeField, &socket);
869 if (Dart_IsError(err)) { 872 if (Dart_IsError(err)) {
870 Dart_PropagateError(err); 873 Dart_PropagateError(err);
871 } 874 }
872 return socket; 875 return socket;
873 } 876 }
874 877
875 } // namespace bin 878 } // namespace bin
876 } // namespace dart 879 } // namespace dart
880
881 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« runtime/bin/socket.h ('K') | « runtime/bin/socket.h ('k') | runtime/bin/socket_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698