Lines Matching refs:File
3 // found in the LICENSE file.
5 // This file defines FileStream, a basic interface for reading and writing files
13 #include "base/files/file.h"
33 // Construct a FileStream with an existing valid |file|.
35 FileStream(base::File file,
38 // The underlying file is closed automatically.
42 // methods cannot be used unless the file is opened successfully. Returns
48 // base::File::Flags.
50 // If the file stream is not closed manually, the underlying file will be
52 // manner (i.e. the file stream is closed in the background but you don't
57 // Returns ERR_IO_PENDING and closes the file asynchronously, calling
69 // relative to the start of the file. Otherwise, an error code is returned.
78 // copied, 0 if at end-of-file, or an error code if the operation could
81 // The file must be opened with FLAG_ASYNC, and a non-null
87 // It is valid to destroy or close the file stream while there is an
104 // The file must be opened with FLAG_ASYNC, and a non-null
110 // It is valid to destroy or close the file stream while there is an
123 // Forces out a filesystem sync on this file to make sure that the file was
128 // The file must be opened with FLAG_ASYNC, and a non-null
134 // It is valid to destroy or close the file stream while there is an
144 // Returns the underlying file for testing.
145 const base::File& GetFileForTesting() const;
153 // without explicitly calling Close, the file should be closed asynchronously