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 #if !defined(DART_IO_SECURE_SOCKET_DISABLED) |
13 #include <prinit.h> | 14 #include <prinit.h> |
14 #include <prerror.h> | 15 #include <prerror.h> |
15 #include <prnetdb.h> | 16 #include <prnetdb.h> |
16 #include <ssl.h> | 17 #include <ssl.h> |
| 18 #else |
| 19 struct PRFileDesc; |
| 20 #endif |
17 | 21 |
18 #include "bin/builtin.h" | 22 #include "bin/builtin.h" |
19 #include "bin/dartutils.h" | 23 #include "bin/dartutils.h" |
20 #include "bin/socket.h" | 24 #include "bin/socket.h" |
21 #include "bin/thread.h" | 25 #include "bin/thread.h" |
22 #include "bin/utils.h" | 26 #include "bin/utils.h" |
23 | 27 |
24 namespace dart { | 28 namespace dart { |
25 namespace bin { | 29 namespace bin { |
26 | 30 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void InitializeBuffers(Dart_Handle dart_this); | 120 void InitializeBuffers(Dart_Handle dart_this); |
117 void InitializePlatformData(); | 121 void InitializePlatformData(); |
118 | 122 |
119 DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 123 DISALLOW_COPY_AND_ASSIGN(SSLFilter); |
120 }; | 124 }; |
121 | 125 |
122 } // namespace bin | 126 } // namespace bin |
123 } // namespace dart | 127 } // namespace dart |
124 | 128 |
125 #endif // BIN_SECURE_SOCKET_H_ | 129 #endif // BIN_SECURE_SOCKET_H_ |
OLD | NEW |