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

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

Issue 2681683005: [dart:io] Adds functions to set file access and modification time (Closed)
Patch Set: Update changelog Created 3 years, 10 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_service.h ('k') | runtime/vm/kernel_to_il.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 RUNTIME_BIN_IO_SERVICE_NO_SSL_H_ 5 #ifndef RUNTIME_BIN_IO_SERVICE_NO_SSL_H_
6 #define RUNTIME_BIN_IO_SERVICE_NO_SSL_H_ 6 #define RUNTIME_BIN_IO_SERVICE_NO_SSL_H_
7 7
8 #if defined(DART_IO_DISABLED) || !defined(DART_IO_SECURE_SOCKET_DISABLED) 8 #if defined(DART_IO_DISABLED) || !defined(DART_IO_SECURE_SOCKET_DISABLED)
9 #error "io_service_no_ssl.h can only be included on builds with IO enabled" 9 #error "io_service_no_ssl.h can only be included on builds with IO enabled"
10 #endif 10 #endif
11 11
12 #include "bin/builtin.h" 12 #include "bin/builtin.h"
13 #include "bin/utils.h" 13 #include "bin/utils.h"
14 14
15 namespace dart { 15 namespace dart {
16 namespace bin { 16 namespace bin {
17 17
18 // 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
19 // In this modified version, though, the request 39 for SSLFilter::ProcessFilter 19 // In this modified version, though, the request 42 for SSLFilter::ProcessFilter
20 // is removed, for use in contexts in which secure sockets are not enabled. 20 // is removed, for use in contexts in which secure sockets are not enabled.
21 #define IO_SERVICE_REQUEST_LIST(V) \ 21 #define IO_SERVICE_REQUEST_LIST(V) \
22 V(File, Exists, 0) \ 22 V(File, Exists, 0) \
23 V(File, Create, 1) \ 23 V(File, Create, 1) \
24 V(File, Delete, 2) \ 24 V(File, Delete, 2) \
25 V(File, Rename, 3) \ 25 V(File, Rename, 3) \
26 V(File, Copy, 4) \ 26 V(File, Copy, 4) \
27 V(File, Open, 5) \ 27 V(File, Open, 5) \
28 V(File, ResolveSymbolicLinks, 6) \ 28 V(File, ResolveSymbolicLinks, 6) \
29 V(File, Close, 7) \ 29 V(File, Close, 7) \
30 V(File, Position, 8) \ 30 V(File, Position, 8) \
31 V(File, SetPosition, 9) \ 31 V(File, SetPosition, 9) \
32 V(File, Truncate, 10) \ 32 V(File, Truncate, 10) \
33 V(File, Length, 11) \ 33 V(File, Length, 11) \
34 V(File, LengthFromPath, 12) \ 34 V(File, LengthFromPath, 12) \
35 V(File, LastModified, 13) \ 35 V(File, LastAccessed, 13) \
36 V(File, Flush, 14) \ 36 V(File, SetLastAccessed, 14) \
37 V(File, ReadByte, 15) \ 37 V(File, LastModified, 15) \
38 V(File, WriteByte, 16) \ 38 V(File, SetLastModified, 16) \
39 V(File, Read, 17) \ 39 V(File, Flush, 17) \
40 V(File, ReadInto, 18) \ 40 V(File, ReadByte, 18) \
41 V(File, WriteFrom, 19) \ 41 V(File, WriteByte, 19) \
42 V(File, CreateLink, 20) \ 42 V(File, Read, 20) \
43 V(File, DeleteLink, 21) \ 43 V(File, ReadInto, 21) \
44 V(File, RenameLink, 22) \ 44 V(File, WriteFrom, 22) \
45 V(File, LinkTarget, 23) \ 45 V(File, CreateLink, 23) \
46 V(File, Type, 24) \ 46 V(File, DeleteLink, 24) \
47 V(File, Identical, 25) \ 47 V(File, RenameLink, 25) \
48 V(File, Stat, 26) \ 48 V(File, LinkTarget, 26) \
49 V(File, Lock, 27) \ 49 V(File, Type, 27) \
50 V(Socket, Lookup, 28) \ 50 V(File, Identical, 28) \
51 V(Socket, ListInterfaces, 29) \ 51 V(File, Stat, 29) \
52 V(Socket, ReverseLookup, 30) \ 52 V(File, Lock, 30) \
53 V(Directory, Create, 31) \ 53 V(Socket, Lookup, 31) \
54 V(Directory, Delete, 32) \ 54 V(Socket, ListInterfaces, 32) \
55 V(Directory, Exists, 33) \ 55 V(Socket, ReverseLookup, 33) \
56 V(Directory, CreateTemp, 34) \ 56 V(Directory, Create, 34) \
57 V(Directory, ListStart, 35) \ 57 V(Directory, Delete, 35) \
58 V(Directory, ListNext, 36) \ 58 V(Directory, Exists, 36) \
59 V(Directory, ListStop, 37) \ 59 V(Directory, CreateTemp, 37) \
60 V(Directory, Rename, 38) 60 V(Directory, ListStart, 38) \
61 V(Directory, ListNext, 39) \
62 V(Directory, ListStop, 40) \
63 V(Directory, Rename, 41)
61 64
62 #define DECLARE_REQUEST(type, method, id) k##type##method##Request = id, 65 #define DECLARE_REQUEST(type, method, id) k##type##method##Request = id,
63 66
64 class IOService { 67 class IOService {
65 public: 68 public:
66 enum { IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) }; 69 enum { IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) };
67 70
68 static Dart_Port GetServicePort(); 71 static Dart_Port GetServicePort();
69 72
70 private: 73 private:
71 DISALLOW_ALLOCATION(); 74 DISALLOW_ALLOCATION();
72 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService); 75 DISALLOW_IMPLICIT_CONSTRUCTORS(IOService);
73 }; 76 };
74 77
75 } // namespace bin 78 } // namespace bin
76 } // namespace dart 79 } // namespace dart
77 80
78 #endif // RUNTIME_BIN_IO_SERVICE_NO_SSL_H_ 81 #endif // RUNTIME_BIN_IO_SERVICE_NO_SSL_H_
OLDNEW
« no previous file with comments | « runtime/bin/io_service.h ('k') | runtime/vm/kernel_to_il.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698