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

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

Issue 3009523002: [dart:io] Remove DART_IO_DISABLED (Closed)
Patch Set: Created 3 years, 4 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/sync_socket_macos.cc ('k') | runtime/bin/sync_socket_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #if defined(DART_IO_DISABLED)
6
7 #include "bin/builtin.h"
8 #include "bin/dartutils.h"
9 #include "include/dart_api.h"
10
11 namespace dart {
12 namespace bin {
13
14 void FUNCTION_NAME(SynchronousSocket_CreateConnectSync)(
15 Dart_NativeArguments args) {
16 Dart_ThrowException(
17 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
18 }
19
20 void FUNCTION_NAME(SynchronousSocket_LookupRequest)(Dart_NativeArguments args) {
21 Dart_ThrowException(
22 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
23 }
24
25 void FUNCTION_NAME(SynchronousSocket_CloseSync)(Dart_NativeArguments args) {
26 Dart_ThrowException(
27 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
28 }
29
30 void FUNCTION_NAME(SynchronousSocket_Available)(Dart_NativeArguments args) {
31 Dart_ThrowException(
32 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
33 }
34
35 void FUNCTION_NAME(SynchronousSocket_Read)(Dart_NativeArguments args) {
36 Dart_ThrowException(
37 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
38 }
39
40 void FUNCTION_NAME(SynchronousSocket_ReadList)(Dart_NativeArguments args) {
41 Dart_ThrowException(
42 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
43 }
44
45 void FUNCTION_NAME(SynchronousSocket_WriteList)(Dart_NativeArguments args) {
46 Dart_ThrowException(
47 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
48 }
49
50 void FUNCTION_NAME(SynchronousSocket_ShutdownRead)(Dart_NativeArguments args) {
51 Dart_ThrowException(
52 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
53 }
54
55 void FUNCTION_NAME(SynchronousSocket_ShutdownWrite)(Dart_NativeArguments args) {
56 Dart_ThrowException(
57 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
58 }
59
60 void FUNCTION_NAME(SynchronousSocket_GetPort)(Dart_NativeArguments args) {
61 Dart_ThrowException(
62 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
63 }
64
65 void FUNCTION_NAME(SynchronousSocket_GetRemotePeer)(Dart_NativeArguments args) {
66 Dart_ThrowException(
67 DartUtils::NewDartArgumentError("Sockets unsupported on this platform"));
68 }
69
70 } // namespace bin
71 } // namespace dart
72
73 #endif // defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/sync_socket_macos.cc ('k') | runtime/bin/sync_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698