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

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

Issue 1800863002: Cleanup in //runtime/bin (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/io_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 #define IO_SERVICE_REQUEST_LIST(V) \ 15 #define IO_SERVICE_REQUEST_LIST(V) \
17 V(File, Exists, 0) \ 16 V(File, Exists, 0) \
18 V(File, Create, 1) \ 17 V(File, Create, 1) \
19 V(File, Delete, 2) \ 18 V(File, Delete, 2) \
20 V(File, Rename, 3) \ 19 V(File, Rename, 3) \
21 V(File, Copy, 4) \ 20 V(File, Copy, 4) \
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #define DECLARE_REQUEST(type, method, id) \ 57 #define DECLARE_REQUEST(type, method, id) \
59 k##type##method##Request = id, 58 k##type##method##Request = id,
60 59
61 class IOService { 60 class IOService {
62 public: 61 public:
63 enum { 62 enum {
64 IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) 63 IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST)
65 }; 64 };
66 65
67 static Dart_Port GetServicePort(); 66 static Dart_Port GetServicePort();
67
68 private:
69 DISALLOW_ALLOCATION();
70 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService);
68 }; 71 };
69 72
70 } // namespace bin 73 } // namespace bin
71 } // namespace dart 74 } // namespace dart
72 75
73 #endif // BIN_IO_SERVICE_H_ 76 #endif // BIN_IO_SERVICE_H_
OLDNEW
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/io_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698