| 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 #ifndef BIN_SECURE_SOCKET_H_ | 5 #ifndef BIN_SECURE_SOCKET_H_ |
| 6 #define BIN_SECURE_SOCKET_H_ | 6 #define BIN_SECURE_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| 11 #include <sys/types.h> | 11 #include <sys/types.h> |
| 12 | 12 |
| 13 #include <prinit.h> | 13 #include <prinit.h> |
| 14 #include <prerror.h> | 14 #include <prerror.h> |
| 15 #include <prnetdb.h> | 15 #include <prnetdb.h> |
| 16 #include <ssl.h> | 16 #include <ssl.h> |
| 17 | 17 |
| 18 #include "bin/builtin.h" | |
| 19 #include "bin/dartutils.h" | |
| 20 #include "platform/globals.h" | 18 #include "platform/globals.h" |
| 21 #include "platform/thread.h" | 19 #include "platform/thread.h" |
| 22 | 20 |
| 21 #include "bin/builtin.h" |
| 22 #include "bin/dartutils.h" |
| 23 #include "bin/utils.h" |
| 23 | 24 |
| 24 namespace dart { | 25 namespace dart { |
| 25 namespace bin { | 26 namespace bin { |
| 26 | 27 |
| 27 static void ThrowException(const char* message) { | 28 static void ThrowException(const char* message) { |
| 28 Dart_Handle socket_io_exception = | 29 Dart_Handle socket_io_exception = |
| 29 DartUtils::NewDartSocketIOException(message, Dart_Null()); | 30 DartUtils::NewDartSocketIOException(message, Dart_Null()); |
| 30 Dart_ThrowException(socket_io_exception); | 31 Dart_ThrowException(socket_io_exception); |
| 31 } | 32 } |
| 32 | 33 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void InitializeBuffers(Dart_Handle dart_this); | 122 void InitializeBuffers(Dart_Handle dart_this); |
| 122 void InitializePlatformData(); | 123 void InitializePlatformData(); |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 125 DISALLOW_COPY_AND_ASSIGN(SSLFilter); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace bin | 128 } // namespace bin |
| 128 } // namespace dart | 129 } // namespace dart |
| 129 | 130 |
| 130 #endif // BIN_SECURE_SOCKET_H_ | 131 #endif // BIN_SECURE_SOCKET_H_ |
| OLD | NEW |