Home
last modified time | relevance | path

Searched refs:platform_file_ (Results 1 – 3 of 3) sorted by relevance

/external/chromium/net/disk_cache/
Dfile_posix.cc172 platform_file_(file), in File()
183 platform_file_ = base::CreatePlatformFile(name, flags, NULL, NULL); in Init()
184 if (platform_file_ < 0) { in Init()
185 platform_file_ = 0; in Init()
194 return platform_file_; in platform_file()
200 return (base::kInvalidPlatformFileValue != platform_file_); in IsValid()
208 int ret = pread(platform_file_, buffer, buffer_len, offset); in Read()
217 int ret = pwrite(platform_file_, buffer, buffer_len, offset); in Write()
259 return 0 == ftruncate(platform_file_, length); in SetLength()
264 size_t ret = lseek(platform_file_, 0, SEEK_END); in GetLength()
[all …]
Dfile_win.cc70 : init_(true), mixed_(true), platform_file_(INVALID_HANDLE_VALUE), in File()
81 platform_file_ = CreateFile(name.value().c_str(), access, sharing, NULL, in Init()
84 if (INVALID_HANDLE_VALUE == platform_file_) in Init()
88 platform_file_, g_completion_handler.Pointer()); in Init()
104 if (INVALID_HANDLE_VALUE != platform_file_) in ~File()
105 CloseHandle(platform_file_); in ~File()
112 return (INVALID_HANDLE_VALUE == platform_file_) ? sync_platform_file_ : in platform_file()
113 platform_file_; in platform_file()
119 return (INVALID_HANDLE_VALUE != platform_file_ || in IsValid()
176 if (!ReadFile(platform_file_, buffer, size, &actual, data->overlapped())) { in Read()
[all …]
Dfile.h81 base::PlatformFile platform_file_; // Regular, asynchronous IO handle. variable