Home | History | Annotate | Download | only in glue

Lines Matching refs:base

7 #include "base/file_path.h"
8 #include "base/file_util.h"
9 #include "base/logging.h"
10 #include "net/base/file_stream.h"
11 #include "net/base/net_util.h"
62 base::PlatformFileInfo info;
104 base::PlatformFile WebFileUtilitiesImpl::openFile(const WebString& path,
108 return base::kInvalidPlatformFileValue;
110 return base::CreatePlatformFile(
112 (mode == 0) ? (base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ)
113 : (base::PLATFORM_FILE_CREATE_ALWAYS |
114 base::PLATFORM_FILE_WRITE),
118 void WebFileUtilitiesImpl::closeFile(base::PlatformFile& handle) {
119 if (handle == base::kInvalidPlatformFileValue)
121 if (base::ClosePlatformFile(handle))
122 handle = base::kInvalidPlatformFileValue;
125 long long WebFileUtilitiesImpl::seekFile(base::PlatformFile handle,
128 if (handle == base::kInvalidPlatformFileValue)
134 bool WebFileUtilitiesImpl::truncateFile(base::PlatformFile handle,
136 if (handle == base::kInvalidPlatformFileValue || offset < 0)
138 net::FileStream file_stream(handle, base::PLATFORM_FILE_WRITE);
142 int WebFileUtilitiesImpl::readFromFile(base::PlatformFile handle,
145 if (handle == base::kInvalidPlatformFileValue || !data || length <= 0)
149 net::FileStream file_stream(handle, base::PLATFORM_FILE_READ);
153 int WebFileUtilitiesImpl::writeToFile(base::PlatformFile handle,
156 if (handle == base::kInvalidPlatformFileValue || !data || length <= 0)
158 net::FileStream file_stream(handle, base::PLATFORM_FILE_WRITE);