Index: runtime/bin/io_service_no_ssl.h |
diff --git a/runtime/bin/io_service.h b/runtime/bin/io_service_no_ssl.h |
similarity index 93% |
copy from runtime/bin/io_service.h |
copy to runtime/bin/io_service_no_ssl.h |
index 87810d0c5da704b6c37871b5a392d32f78533d0f..9cc7fc1a2f12a026efef956d6f8c3a4d1662f12f 100644 |
--- a/runtime/bin/io_service.h |
+++ b/runtime/bin/io_service_no_ssl.h |
@@ -2,8 +2,8 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-#ifndef BIN_IO_SERVICE_H_ |
-#define BIN_IO_SERVICE_H_ |
+#ifndef BIN_IO_SERVICE_NO_SSL_H_ |
+#define BIN_IO_SERVICE_NO_SSL_H_ |
#include "bin/builtin.h" |
#include "bin/utils.h" |
@@ -13,6 +13,8 @@ namespace dart { |
namespace bin { |
// This list must be kept in sync with the list in sdk/lib/io/io_service.dart |
+// In this modified version, though, the request 39 for SSLFilter::ProcessFilter |
+// is removed, for use in contexts in which secure sockets are not enabled. |
#define IO_SERVICE_REQUEST_LIST(V) \ |
V(File, Exists, 0) \ |
V(File, Create, 1) \ |
@@ -52,8 +54,7 @@ namespace bin { |
V(Directory, ListStart, 35) \ |
V(Directory, ListNext, 36) \ |
V(Directory, ListStop, 37) \ |
- V(Directory, Rename, 38) \ |
- V(SSLFilter, ProcessFilter, 39) |
+ V(Directory, Rename, 38) |
#define DECLARE_REQUEST(type, method, id) \ |
k##type##method##Request = id, |
@@ -70,4 +71,4 @@ IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) |
} // namespace bin |
} // namespace dart |
-#endif // BIN_IO_SERVICE_H_ |
+#endif // BIN_IO_SERVICE_NO_SSL_H_ |