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

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

Issue 13654002: Change how File/Directory/Link .delete works. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
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_FILE_H_ 5 #ifndef BIN_FILE_H_
6 #define BIN_FILE_H_ 6 #define BIN_FILE_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 static File* Open(const char* path, FileOpenMode mode); 124 static File* Open(const char* path, FileOpenMode mode);
125 125
126 // Create a file object for the specified stdio file descriptor 126 // Create a file object for the specified stdio file descriptor
127 // (stdin, stout or stderr). 127 // (stdin, stout or stderr).
128 static File* OpenStdio(int fd); 128 static File* OpenStdio(int fd);
129 129
130 static bool Exists(const char* path); 130 static bool Exists(const char* path);
131 static bool Create(const char* path); 131 static bool Create(const char* path);
132 static bool CreateLink(const char* path, const char* target); 132 static bool CreateLink(const char* path, const char* target);
133 static bool Delete(const char* path); 133 static bool Delete(const char* path);
134 static bool DeleteLink(const char* path);
134 static off_t LengthFromPath(const char* path); 135 static off_t LengthFromPath(const char* path);
135 static time_t LastModified(const char* path); 136 static time_t LastModified(const char* path);
136 static char* LinkTarget(const char* pathname); 137 static char* LinkTarget(const char* pathname);
137 static bool IsAbsolutePath(const char* path); 138 static bool IsAbsolutePath(const char* path);
138 static char* GetCanonicalPath(const char* path); 139 static char* GetCanonicalPath(const char* path);
139 static char* GetContainingDirectory(char* path); 140 static char* GetContainingDirectory(char* path);
140 static const char* PathSeparator(); 141 static const char* PathSeparator();
141 static const char* StringEscapedPathSeparator(); 142 static const char* StringEscapedPathSeparator();
142 static Type GetType(const char* path, bool follow_links); 143 static Type GetType(const char* path, bool follow_links);
143 static Identical AreIdentical(const char* file_1, const char* file_2); 144 static Identical AreIdentical(const char* file_1, const char* file_2);
(...skipping 11 matching lines...) Expand all
155 156
156 // FileHandle is an OS specific class which stores data about the file. 157 // FileHandle is an OS specific class which stores data about the file.
157 FileHandle* handle_; // OS specific handle for the file. 158 FileHandle* handle_; // OS specific handle for the file.
158 159
159 static NativeService file_service_; 160 static NativeService file_service_;
160 161
161 DISALLOW_COPY_AND_ASSIGN(File); 162 DISALLOW_COPY_AND_ASSIGN(File);
162 }; 163 };
163 164
164 #endif // BIN_FILE_H_ 165 #endif // BIN_FILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698