| OLD | NEW |
| 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 #include "bin/builtin.h" | 5 #include "bin/builtin.h" |
| 6 #include "bin/dartutils.h" | 6 #include "bin/dartutils.h" |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 "Secure Sockets unsupported on this platform")); | 34 "Secure Sockets unsupported on this platform")); |
| 35 } | 35 } |
| 36 | 36 |
| 37 | 37 |
| 38 void FUNCTION_NAME(SecureSocket_Handshake)(Dart_NativeArguments args) { | 38 void FUNCTION_NAME(SecureSocket_Handshake)(Dart_NativeArguments args) { |
| 39 Dart_ThrowException(DartUtils::NewDartArgumentError( | 39 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 40 "Secure Sockets unsupported on this platform")); | 40 "Secure Sockets unsupported on this platform")); |
| 41 } | 41 } |
| 42 | 42 |
| 43 | 43 |
| 44 void FUNCTION_NAME(SecureSocket_GetSelectedProtocol)( |
| 45 Dart_NativeArguments args) { |
| 46 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 47 "Secure Sockets unsupported on this platform")); |
| 48 } |
| 49 |
| 50 |
| 44 void FUNCTION_NAME(SecureSocket_RegisterHandshakeCompleteCallback)( | 51 void FUNCTION_NAME(SecureSocket_RegisterHandshakeCompleteCallback)( |
| 45 Dart_NativeArguments args) { | 52 Dart_NativeArguments args) { |
| 46 Dart_ThrowException(DartUtils::NewDartArgumentError( | 53 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 47 "Secure Sockets unsupported on this platform")); | 54 "Secure Sockets unsupported on this platform")); |
| 48 } | 55 } |
| 49 | 56 |
| 50 | 57 |
| 51 void FUNCTION_NAME(SecureSocket_RegisterBadCertificateCallback)( | 58 void FUNCTION_NAME(SecureSocket_RegisterBadCertificateCallback)( |
| 52 Dart_NativeArguments args) { | 59 Dart_NativeArguments args) { |
| 53 Dart_ThrowException(DartUtils::NewDartArgumentError( | 60 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 "Secure Sockets unsupported on this platform")); | 93 "Secure Sockets unsupported on this platform")); |
| 87 } | 94 } |
| 88 | 95 |
| 89 | 96 |
| 90 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) { | 97 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) { |
| 91 Dart_ThrowException(DartUtils::NewDartArgumentError( | 98 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 92 "Secure Sockets unsupported on this platform")); | 99 "Secure Sockets unsupported on this platform")); |
| 93 } | 100 } |
| 94 } // namespace bin | 101 } // namespace bin |
| 95 } // namespace dart | 102 } // namespace dart |
| OLD | NEW |