Lines Matching refs:base
13 #include "base/containers/span.h"
14 #include "base/files/file_path.h"
15 #include "base/files/platform_file.h"
16 #include "base/functional/callback.h"
17 #include "base/time/time.h"
20 namespace base {
29 using Paths = base::span<const base::FilePath>;
43 base::Time last_modified;
48 virtual bool Open(Paths paths, std::vector<base::File>* files) = 0;
51 virtual bool List(const base::FilePath& path,
52 std::vector<base::FilePath>* files,
53 std::vector<base::FilePath>* subdirs) = 0;
56 virtual bool GetInfo(const base::FilePath& path, Info* info) = 0;
85 using ProgressCallback = base::RepeatingCallback<bool(const Progress&)>;
87 using FilterCallback = base::RepeatingCallback<bool(const base::FilePath&)>;
92 base::FilePath src_dir;
100 base::FilePath dest_file;
105 int dest_fd = base::kInvalidPlatformFile;
129 base::TimeDelta progress_period;
151 bool ZipWithFilterCallback(const base::FilePath& src_dir,
152 const base::FilePath& dest_file,
158 bool Zip(const base::FilePath& src_dir,
159 const base::FilePath& dest_file,
168 bool ZipFiles(const base::FilePath& src_dir,
174 using UnzipProgressCallback = base::RepeatingCallback<void(uint64_t bytes)>;
196 typedef base::RepeatingCallback<std::unique_ptr<WriterDelegate>(
197 const base::FilePath&)>
200 typedef base::RepeatingCallback<bool(const base::FilePath&)> DirectoryCreator;
204 bool Unzip(const base::PlatformFile& zip_file,
213 bool Unzip(const base::FilePath& zip_file,
214 const base::FilePath& dest_dir,