Home | History | Annotate | Download | only in base

Lines Matching refs:PlatformFile

24 typedef HANDLE PlatformFile;
25 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE;
27 typedef int PlatformFile;
28 const PlatformFile kInvalidPlatformFileValue = -1;
102 BASE_API PlatformFile CreatePlatformFile(const FilePath& name,
108 BASE_API bool ClosePlatformFile(PlatformFile file);
112 BASE_API int ReadPlatformFile(PlatformFile file, int64 offset,
118 BASE_API int WritePlatformFile(PlatformFile file, int64 offset,
124 BASE_API bool TruncatePlatformFile(PlatformFile file, int64 length);
127 BASE_API bool FlushPlatformFile(PlatformFile file);
130 BASE_API bool TouchPlatformFile(PlatformFile file, const Time& last_access_time,
134 BASE_API bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info);
136 // Use this class to pass ownership of a PlatformFile to a receiver that may or
138 // PlatformFile.
144 // PlatformFile file = pass_file.ReleaseValue();
150 // PlatformFile file = CreatePlatformFile(path, ...);
158 explicit PassPlatformFile(PlatformFile* value) : value_(value) {
161 // Called to retrieve the PlatformFile stored in this object. The caller
162 // gains ownership of the PlatformFile and is now responsible for closing it.
163 // Any subsequent calls to this method will return an invalid PlatformFile.
164 PlatformFile ReleaseValue() {
165 PlatformFile temp = *value_;
171 PlatformFile* value_;