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

Side by Side Diff: bin/file.h

Issue 9614006: - Proper URI resolution when loading scripts from the standalone binary. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #if defined(_WIN32) 8 #if defined(_WIN32)
9 typedef signed __int64 int64_t; 9 typedef signed __int64 int64_t;
10 typedef unsigned __int8 uint8_t; 10 typedef unsigned __int8 uint8_t;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Create a file object for the specified stdio file descriptor 116 // Create a file object for the specified stdio file descriptor
117 // (stdin, stout or stderr). 117 // (stdin, stout or stderr).
118 static File* OpenStdio(int fd); 118 static File* OpenStdio(int fd);
119 119
120 static bool Exists(const char* name); 120 static bool Exists(const char* name);
121 static bool Create(const char* name); 121 static bool Create(const char* name);
122 static bool Delete(const char* name); 122 static bool Delete(const char* name);
123 static bool IsAbsolutePath(const char* pathname); 123 static bool IsAbsolutePath(const char* pathname);
124 static char* GetCanonicalPath(const char* name); 124 static char* GetCanonicalPath(const char* name);
125 static char* GetContainingDirectory(char* name); 125 static char* GetContainingDirectory(char* name);
126 static const char* GetWorkingDirectory();
126 static const char* PathSeparator(); 127 static const char* PathSeparator();
127 static const char* StringEscapedPathSeparator(); 128 static const char* StringEscapedPathSeparator();
128 static StdioHandleType GetStdioHandleType(int fd); 129 static StdioHandleType GetStdioHandleType(int fd);
129 130
130 static FileOpenMode DartModeToFileMode(DartFileOpenMode mode); 131 static FileOpenMode DartModeToFileMode(DartFileOpenMode mode);
131 132
132 static Dart_Port GetServicePort(); 133 static Dart_Port GetServicePort();
133 134
134 private: 135 private:
135 File(const char* name, FileHandle* handle) : name_(name), handle_(handle) { } 136 File(const char* name, FileHandle* handle) : name_(name), handle_(handle) { }
(...skipping 10 matching lines...) Expand all
146 File(const File&); 147 File(const File&);
147 void operator=(const File&); 148 void operator=(const File&);
148 149
149 static dart::Mutex mutex_; 150 static dart::Mutex mutex_;
150 static int service_ports_size_; 151 static int service_ports_size_;
151 static Dart_Port* service_ports_; 152 static Dart_Port* service_ports_;
152 static int service_ports_index_; 153 static int service_ports_index_;
153 }; 154 };
154 155
155 #endif // BIN_FILE_H_ 156 #endif // BIN_FILE_H_
OLDNEW
« no previous file with comments | « bin/builtin_nolib.cc ('k') | bin/file_linux.cc » ('j') | bin/main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698