Home | History | Annotate | Download | only in disk_cache

Lines Matching defs:File

3 // found in the LICENSE file.
28 // Simple wrapper around a file that allows asynchronous operations.
29 class File : public base::RefCounted<File> {
30 friend class base::RefCounted<File>;
32 File();
33 // mixed_mode set to true enables regular synchronous operations for the file.
34 explicit File(bool mixed_mode);
36 // Initializes the object to use the passed in file instead of opening it with
39 explicit File(base::PlatformFile file);
41 // Initializes the object to point to a given file. The file must aready exist
45 // Returns the handle or file descriptor.
48 // Returns true if the file was opened properly.
62 // Sets the file's length. The file is truncated or extended with zeros to
71 virtual ~File();
84 DISALLOW_COPY_AND_ASSIGN(File);