#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/storage_monitor/mtab_watcher_linux.h"
#include <mntent.h>
#include <stddef.h>
#include <stdio.h>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/threading/scoped_blocking_call.h"
namespace {
const char* const kKnownFileSystems[] = …;
}
namespace storage_monitor {
MtabWatcherLinux::MtabWatcherLinux(const base::FilePath& mtab_path,
const UpdateMtabCallback& callback)
: … { … }
MtabWatcherLinux::~MtabWatcherLinux() { … }
void MtabWatcherLinux::ReadMtab() const { … }
void MtabWatcherLinux::OnFilePathChanged(
const base::FilePath& path, bool error) { … }
}