Lines Matching defs:paths
181 bool ZipWriter::AddMixedEntries(Paths paths) {
182 // Pointers to directory paths in |paths|.
188 // First pass. We don't know which paths are files and which ones are
190 // path. Try to open all of the paths as files. We'll get invalid file
193 while (!paths.empty()) {
194 // Work with chunks of 50 paths at most.
195 const size_t n = std::min<size_t>(paths.size(), 50);
196 const Paths relative_paths = paths.subspan(0, n);
197 paths = paths.subspan(n, paths.size() - n);
229 bool ZipWriter::AddFileEntries(Paths paths) {
233 while (!paths.empty()) {
234 // Work with chunks of 50 paths at most.
235 const size_t n = std::min<size_t>(paths.size(), 50);
236 const Paths relative_paths = paths.subspan(0, n);
237 paths = paths.subspan(n, paths.size() - n);
268 bool ZipWriter::AddDirectoryEntries(Paths paths) {
269 for (const base::FilePath& path : paths) {
294 void ZipWriter::Filter(std::vector<base::FilePath>* const paths) {
295 DCHECK(paths);
300 const auto end = std::remove_if(paths->begin(), paths->end(),
304 paths->erase(end, paths->end());