#include "third_party/blink/renderer/platform/back_forward_cache_buffer_limit_tracker.h"
#include "base/synchronization/lock.h"
#include "base/trace_event/trace_event.h"
#include "third_party/blink/renderer/platform/back_forward_cache_utils.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
namespace {
constexpr size_t kDefaultMaxBufferedBodyBytesPerProcess = …;
}
namespace blink {
BackForwardCacheBufferLimitTracker& BackForwardCacheBufferLimitTracker::Get() { … }
BackForwardCacheBufferLimitTracker::BackForwardCacheBufferLimitTracker()
: … { … }
void BackForwardCacheBufferLimitTracker::DidBufferBytes(size_t num_bytes) { … }
void BackForwardCacheBufferLimitTracker::
DidRemoveFrameOrWorkerFromBackForwardCache(size_t total_bytes) { … }
bool BackForwardCacheBufferLimitTracker::IsUnderPerProcessBufferLimit() { … }
size_t BackForwardCacheBufferLimitTracker::total_bytes_buffered_for_testing() { … }
}