blob: 18088d11ece9c081a850a5e3480778ce5f63ca71 [file] [log] [blame]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SPACED_DISK_USAGE_H_
#define SPACED_DISK_USAGE_H_
#include <base/files/file_path.h>
namespace spaced {
// Abstract class that defines the interface for both disk usage util and its
// D-Bus proxy.
class DiskUsageUtil {
public:
virtual ~DiskUsageUtil() = default;
virtual int64_t GetFreeDiskSpace(const base::FilePath& path) = 0;
virtual int64_t GetTotalDiskSpace(const base::FilePath& path) = 0;
virtual int64_t GetRootDeviceSize() = 0;
};
} // namespace spaced
#endif // SPACED_DISK_USAGE_H_