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

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

Issue 8383037: Improve error handling in the process library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/file.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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;
11 #else 11 #else
12 #include <stdint.h> 12 #include <stdint.h>
13 #endif 13 #endif
14 14
15 #include <assert.h>
16 #include <stdlib.h> 15 #include <stdlib.h>
17 #include <string.h> 16 #include <string.h>
18 #include <stdio.h> 17 #include <stdio.h>
19 #include <sys/types.h> 18 #include <sys/types.h>
20 19
21 // Forward declaration. 20 // Forward declaration.
22 class FileHandle; 21 class FileHandle;
23 22
24 class File { 23 class File {
25 public: 24 public:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const char* name_; 68 const char* name_;
70 // FileHandle is an OS specific class which stores data about the file. 69 // FileHandle is an OS specific class which stores data about the file.
71 FileHandle* handle_; // OS specific handle for the file. 70 FileHandle* handle_; // OS specific handle for the file.
72 71
73 // DISALLOW_COPY_AND_ASSIGN(File). 72 // DISALLOW_COPY_AND_ASSIGN(File).
74 File(const File&); 73 File(const File&);
75 void operator=(const File&); 74 void operator=(const File&);
76 }; 75 };
77 76
78 #endif // BIN_FILE_H_ 77 #endif // BIN_FILE_H_
OLDNEW
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698