Home | History | Annotate | Download | only in files

Lines Matching refs:File

3 // found in the LICENSE file.
10 #include "base/files/file.h"
18 void FileDeleter(base::File file) {
27 FileHelper(FileProxy* proxy, File file)
28 : file_(file.Pass()),
29 error_(File::FILE_ERROR_FAILED),
42 File file_;
43 File::Error error_;
55 GenericFileHelper(FileProxy* proxy, File file)
56 : FileHelper(proxy, file.Pass()) {
61 error_ = File::FILE_OK;
66 error_ = rv ? File::FILE_OK : File::FILE_ERROR_FAILED;
71 error_ = File::FILE_OK;
76 error_ = File::FILE_OK;
91 CreateOrOpenHelper(FileProxy* proxy, File file)
92 : FileHelper(proxy, file.Pass()) {
97 error_ = file_.IsValid() ? File::FILE_OK : file_.error_details();
112 CreateTemporaryHelper(FileProxy* proxy, File file)
113 : FileHelper(proxy, file.Pass()) {
118 // that returns a FilePath and a File.
122 error_ = File::FILE_ERROR_FAILED;
126 uint32 file_flags = File::FLAG_WRITE |
127 File::FLAG_TEMPORARY |
128 File::FLAG_CREATE_ALWAYS |
133 error_ = File::FILE_OK;
154 GetInfoHelper(FileProxy* proxy, File file)
155 : FileHelper(proxy, file.Pass()) {
160 error_ = File::FILE_OK;
170 File::Info file_info_;
176 ReadHelper(FileProxy* proxy, File file, int bytes_to_read)
177 : FileHelper(proxy, file.Pass()),
185 error_ = (bytes_read_ < 0) ? File::FILE_ERROR_FAILED : File::FILE_OK;
204 File file,
206 : FileHelper(proxy, file.Pass()),
215 error_ = (bytes_written_ < 0) ? File::FILE_ERROR_FAILED : File::FILE_OK;
245 CreateOrOpenHelper* helper = new CreateOrOpenHelper(this, File());
256 CreateTemporaryHelper* helper = new CreateTemporaryHelper(this, File());
268 void FileProxy::SetFile(File file) {
270 file_ = file.Pass();
273 File FileProxy::TakeFile() {