ladybird/Libraries/LibRequests/CacheSizes.h
Timothy Flynn ba49942b6d LibRequests+RequestServer: Add a method to estimate disk cache size
This allows estimating the cache size stored on disk since a provided
time stamp, and in total.
2025-11-12 09:06:21 -05:00

29 lines
433 B
C++

/*
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
#include <LibIPC/Forward.h>
namespace Requests {
struct CacheSizes {
u64 since_requested_time { 0 };
u64 total { 0 };
};
}
namespace IPC {
template<>
ErrorOr<void> encode(Encoder&, Requests::CacheSizes const&);
template<>
ErrorOr<Requests::CacheSizes> decode(Decoder&);
}