Lines Matching refs:File
3 // found in the LICENSE file.
10 #include "base/files/file.h"
24 // This class provides asynchronous access to a File. All methods follow the
25 // same rules of the equivalent File method, as they are implemented by bouncing
26 // the operation to File using a TaskRunner.
28 // This class performs automatic proxying to close the underlying file at
44 typedef Callback<void(File::Error)> StatusCallback;
46 typedef Callback<void(File::Error,
48 typedef Callback<void(File::Error,
49 const File::Info&)> GetFileInfoCallback;
50 typedef Callback<void(File::Error,
53 typedef Callback<void(File::Error,
60 // Creates or opens a file with the given flags. It is invalid to pass a null
61 // callback. If File::FLAG_CREATE is set in |file_flags| it always tries to
62 // create a new file at the given |file_path| and fails if the file already
70 // Creates a temporary file for writing. The path and an open file are
71 // returned. It is invalid to pass a null callback. The additional file flags
72 // will be added on top of the default file flags which are:
73 // File::FLAG_CREATE_ALWAYS
74 // File::FLAG_WRITE
75 // File::FLAG_TEMPORARY.
84 // Returns true if a new file was created (or an old one truncated to zero
85 // length to simulate a new file), and false otherwise.
88 // Claims ownership of |file|. It is an error to call this method when
90 void SetFile(File file);
92 File TakeFile();
96 // Proxies File::Close. The callback can be null.
100 // Proxies File::GetInfo. The callback can't be null.
104 // Proxies File::Read. The callback can't be null.
109 // Proxies File::Write. The callback can be null.
117 // Proxies File::SetTimes. The callback can be null.
123 // Proxies File::SetLength. The callback can be null.
127 // Proxies File::Flush. The callback can be null.
136 File file_;