#include "components/enterprise/common/files_scan_data.h"
#include <utility>
#include "base/files/file.h"
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/task/thread_pool.h"
namespace enterprise_connectors {
namespace {
FilesScanData::PathsToScanResult GetPathsToScan(
std::vector<base::FilePath> base_paths) { … }
}
FilesScanData::PathsToScanResult::PathsToScanResult(
std::vector<base::FilePath> base_paths,
FilesScanData::ExpandedPathsIndexes expanded_paths_indexes,
std::vector<base::FilePath> paths)
: … { … }
FilesScanData::PathsToScanResult::PathsToScanResult(PathsToScanResult&&) =
default;
FilesScanData::PathsToScanResult& FilesScanData::PathsToScanResult::operator=(
PathsToScanResult&&) = default;
FilesScanData::PathsToScanResult::~PathsToScanResult() = default;
FilesScanData::FilesScanData() = default;
FilesScanData::FilesScanData(std::vector<ui::FileInfo> paths) { … }
FilesScanData::FilesScanData(std::vector<base::FilePath> paths)
: … { … }
FilesScanData::~FilesScanData() = default;
void FilesScanData::ExpandPaths(base::OnceClosure done_closure) { … }
std::set<size_t> FilesScanData::IndexesToBlock(
const std::vector<bool>& allowed_paths) { … }
const std::vector<base::FilePath>& FilesScanData::base_paths() const { … }
std::vector<base::FilePath> FilesScanData::take_base_paths() { … }
const FilesScanData::ExpandedPathsIndexes&
FilesScanData::expanded_paths_indexes() const { … }
const std::vector<base::FilePath>& FilesScanData::expanded_paths() const { … }
void FilesScanData::OnExpandPathsDone(PathsToScanResult result) { … }
}