| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_IO_SERVICE_NO_SSL_H_ | 5 #ifndef BIN_IO_SERVICE_NO_SSL_H_ |
| 6 #define BIN_IO_SERVICE_NO_SSL_H_ | 6 #define BIN_IO_SERVICE_NO_SSL_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
| 10 | 10 |
| 11 | |
| 12 namespace dart { | 11 namespace dart { |
| 13 namespace bin { | 12 namespace bin { |
| 14 | 13 |
| 15 // This list must be kept in sync with the list in sdk/lib/io/io_service.dart | 14 // This list must be kept in sync with the list in sdk/lib/io/io_service.dart |
| 16 // In this modified version, though, the request 39 for SSLFilter::ProcessFilter | 15 // In this modified version, though, the request 39 for SSLFilter::ProcessFilter |
| 17 // is removed, for use in contexts in which secure sockets are not enabled. | 16 // is removed, for use in contexts in which secure sockets are not enabled. |
| 18 #define IO_SERVICE_REQUEST_LIST(V) \ | 17 #define IO_SERVICE_REQUEST_LIST(V) \ |
| 19 V(File, Exists, 0) \ | 18 V(File, Exists, 0) \ |
| 20 V(File, Create, 1) \ | 19 V(File, Create, 1) \ |
| 21 V(File, Delete, 2) \ | 20 V(File, Delete, 2) \ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #define DECLARE_REQUEST(type, method, id) \ | 58 #define DECLARE_REQUEST(type, method, id) \ |
| 60 k##type##method##Request = id, | 59 k##type##method##Request = id, |
| 61 | 60 |
| 62 class IOService { | 61 class IOService { |
| 63 public: | 62 public: |
| 64 enum { | 63 enum { |
| 65 IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) | 64 IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 static Dart_Port GetServicePort(); | 67 static Dart_Port GetServicePort(); |
| 68 |
| 69 private: |
| 70 DISALLOW_ALLOCATION(); |
| 71 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService); |
| 69 }; | 72 }; |
| 70 | 73 |
| 71 } // namespace bin | 74 } // namespace bin |
| 72 } // namespace dart | 75 } // namespace dart |
| 73 | 76 |
| 74 #endif // BIN_IO_SERVICE_NO_SSL_H_ | 77 #endif // BIN_IO_SERVICE_NO_SSL_H_ |
| OLD | NEW |