Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: runtime/bin/io_service.h

Issue 1839463002: Really remove io support when dart:io is unsupported. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_H_ 5 #ifndef BIN_IO_SERVICE_H_
6 #define BIN_IO_SERVICE_H_ 6 #define BIN_IO_SERVICE_H_
7 7
8 #if defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED)
9 #error "io_service.h can only be included on builds with IO and SSL enabled"
10 #endif
11
8 #include "bin/builtin.h" 12 #include "bin/builtin.h"
9 #include "bin/utils.h" 13 #include "bin/utils.h"
10 14
11 namespace dart { 15 namespace dart {
12 namespace bin { 16 namespace bin {
13 17
14 // This list must be kept in sync with the list in sdk/lib/io/io_service.dart 18 // This list must be kept in sync with the list in sdk/lib/io/io_service.dart
15 #define IO_SERVICE_REQUEST_LIST(V) \ 19 #define IO_SERVICE_REQUEST_LIST(V) \
16 V(File, Exists, 0) \ 20 V(File, Exists, 0) \
17 V(File, Create, 1) \ 21 V(File, Create, 1) \
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 71
68 private: 72 private:
69 DISALLOW_ALLOCATION(); 73 DISALLOW_ALLOCATION();
70 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService); 74 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService);
71 }; 75 };
72 76
73 } // namespace bin 77 } // namespace bin
74 } // namespace dart 78 } // namespace dart
75 79
76 #endif // BIN_IO_SERVICE_H_ 80 #endif // BIN_IO_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698