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

Side by Side Diff: runtime/bin/secure_socket_unsupported.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_SECURE_SOCKET_DISABLED) 5 #if defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED)
6 6
7 #include "bin/builtin.h" 7 #include "bin/builtin.h"
8 #include "bin/dartutils.h" 8 #include "bin/dartutils.h"
9
10 #include "include/dart_api.h" 9 #include "include/dart_api.h"
11 10
12 namespace dart { 11 namespace dart {
13 namespace bin { 12 namespace bin {
14 13
15 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) { 14 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) {
16 Dart_ThrowException(DartUtils::NewDartArgumentError( 15 Dart_ThrowException(DartUtils::NewDartArgumentError(
17 "Secure Sockets unsupported on this platform")); 16 "Secure Sockets unsupported on this platform"));
18 } 17 }
19 18
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 Dart_ThrowException(DartUtils::NewDartArgumentError( 92 Dart_ThrowException(DartUtils::NewDartArgumentError(
94 "Secure Sockets unsupported on this platform")); 93 "Secure Sockets unsupported on this platform"));
95 } 94 }
96 95
97 96
98 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) { 97 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) {
99 Dart_ThrowException(DartUtils::NewDartArgumentError( 98 Dart_ThrowException(DartUtils::NewDartArgumentError(
100 "Secure Sockets unsupported on this platform")); 99 "Secure Sockets unsupported on this platform"));
101 } 100 }
102 101
102
103 void FUNCTION_NAME(SecurityContext_Allocate)(Dart_NativeArguments args) { 103 void FUNCTION_NAME(SecurityContext_Allocate)(Dart_NativeArguments args) {
104 Dart_ThrowException(DartUtils::NewDartArgumentError( 104 Dart_ThrowException(DartUtils::NewDartArgumentError(
105 "Secure Sockets unsupported on this platform")); 105 "Secure Sockets unsupported on this platform"));
106 } 106 }
107 107
108
108 void FUNCTION_NAME(SecurityContext_UsePrivateKeyBytes)( 109 void FUNCTION_NAME(SecurityContext_UsePrivateKeyBytes)(
109 Dart_NativeArguments args) { 110 Dart_NativeArguments args) {
110 Dart_ThrowException(DartUtils::NewDartArgumentError( 111 Dart_ThrowException(DartUtils::NewDartArgumentError(
111 "Secure Sockets unsupported on this platform")); 112 "Secure Sockets unsupported on this platform"));
112 } 113 }
113 114
115
114 void FUNCTION_NAME(SecurityContext_SetAlpnProtocols)( 116 void FUNCTION_NAME(SecurityContext_SetAlpnProtocols)(
115 Dart_NativeArguments args) { 117 Dart_NativeArguments args) {
116 Dart_ThrowException(DartUtils::NewDartArgumentError( 118 Dart_ThrowException(DartUtils::NewDartArgumentError(
117 "Secure Sockets unsupported on this platform")); 119 "Secure Sockets unsupported on this platform"));
118 } 120 }
119 121
122
120 void FUNCTION_NAME(SecurityContext_SetClientAuthoritiesBytes)( 123 void FUNCTION_NAME(SecurityContext_SetClientAuthoritiesBytes)(
121 Dart_NativeArguments args) { 124 Dart_NativeArguments args) {
122 Dart_ThrowException(DartUtils::NewDartArgumentError( 125 Dart_ThrowException(DartUtils::NewDartArgumentError(
123 "Secure Sockets unsupported on this platform")); 126 "Secure Sockets unsupported on this platform"));
124 } 127 }
125 128
129
126 void FUNCTION_NAME(SecurityContext_SetTrustedCertificatesBytes)( 130 void FUNCTION_NAME(SecurityContext_SetTrustedCertificatesBytes)(
127 Dart_NativeArguments args) { 131 Dart_NativeArguments args) {
128 Dart_ThrowException(DartUtils::NewDartArgumentError( 132 Dart_ThrowException(DartUtils::NewDartArgumentError(
129 "Secure Sockets unsupported on this platform")); 133 "Secure Sockets unsupported on this platform"));
130 } 134 }
131 135
136
132 void FUNCTION_NAME(SecurityContext_AlpnSupported)(Dart_NativeArguments args) { 137 void FUNCTION_NAME(SecurityContext_AlpnSupported)(Dart_NativeArguments args) {
133 Dart_ThrowException(DartUtils::NewDartArgumentError( 138 Dart_ThrowException(DartUtils::NewDartArgumentError(
134 "Secure Sockets unsupported on this platform")); 139 "Secure Sockets unsupported on this platform"));
135 } 140 }
136 141
142
137 void FUNCTION_NAME(SecurityContext_TrustBuiltinRoots)( 143 void FUNCTION_NAME(SecurityContext_TrustBuiltinRoots)(
138 Dart_NativeArguments args) { 144 Dart_NativeArguments args) {
139 Dart_ThrowException(DartUtils::NewDartArgumentError( 145 Dart_ThrowException(DartUtils::NewDartArgumentError(
140 "Secure Sockets unsupported on this platform")); 146 "Secure Sockets unsupported on this platform"));
141 } 147 }
142 148
149
143 void FUNCTION_NAME(SecurityContext_UseCertificateChainBytes)( 150 void FUNCTION_NAME(SecurityContext_UseCertificateChainBytes)(
144 Dart_NativeArguments args) { 151 Dart_NativeArguments args) {
145 Dart_ThrowException(DartUtils::NewDartArgumentError( 152 Dart_ThrowException(DartUtils::NewDartArgumentError(
146 "Secure Sockets unsupported on this platform")); 153 "Secure Sockets unsupported on this platform"));
147 } 154 }
148 155
156
149 void FUNCTION_NAME(X509_Subject)(Dart_NativeArguments args) { 157 void FUNCTION_NAME(X509_Subject)(Dart_NativeArguments args) {
150 Dart_ThrowException(DartUtils::NewDartArgumentError( 158 Dart_ThrowException(DartUtils::NewDartArgumentError(
151 "Secure Sockets unsupported on this platform")); 159 "Secure Sockets unsupported on this platform"));
152 } 160 }
153 161
162
154 void FUNCTION_NAME(X509_Issuer)(Dart_NativeArguments args) { 163 void FUNCTION_NAME(X509_Issuer)(Dart_NativeArguments args) {
155 Dart_ThrowException(DartUtils::NewDartArgumentError( 164 Dart_ThrowException(DartUtils::NewDartArgumentError(
156 "Secure Sockets unsupported on this platform")); 165 "Secure Sockets unsupported on this platform"));
157 } 166 }
158 167
168
159 void FUNCTION_NAME(X509_StartValidity)(Dart_NativeArguments args) { 169 void FUNCTION_NAME(X509_StartValidity)(Dart_NativeArguments args) {
160 Dart_ThrowException(DartUtils::NewDartArgumentError( 170 Dart_ThrowException(DartUtils::NewDartArgumentError(
161 "Secure Sockets unsupported on this platform")); 171 "Secure Sockets unsupported on this platform"));
162 } 172 }
163 173
174
164 void FUNCTION_NAME(X509_EndValidity)(Dart_NativeArguments args) { 175 void FUNCTION_NAME(X509_EndValidity)(Dart_NativeArguments args) {
165 Dart_ThrowException(DartUtils::NewDartArgumentError( 176 Dart_ThrowException(DartUtils::NewDartArgumentError(
166 "Secure Sockets unsupported on this platform")); 177 "Secure Sockets unsupported on this platform"));
167 } 178 }
168 179
180
169 class SSLFilter { 181 class SSLFilter {
170 public: 182 public:
171 static CObject* ProcessFilterRequest(const CObjectArray& request); 183 static CObject* ProcessFilterRequest(const CObjectArray& request);
172 }; 184 };
173 185
174 CObject* SSLFilter::ProcessFilterRequest(const CObjectArray& request) { 186 CObject* SSLFilter::ProcessFilterRequest(const CObjectArray& request) {
175 return CObject::IllegalArgumentError(); 187 return CObject::IllegalArgumentError();
176 } 188 }
177 189
178 } // namespace bin 190 } // namespace bin
179 } // namespace dart 191 } // namespace dart
180 192
181 #endif // defined(DART_IO_SECURE_SOCKET_DISABLED) 193 #endif // defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket_macos.cc ('k') | runtime/bin/socket.h » ('j') | runtime/bin/socket.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698