chromium/third_party/blink/renderer/platform/back_forward_cache_buffer_limit_tracker.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Maximum number of bytes that can be buffered in total (per-process) by all
// network requests in one renderer process while in back-forward cache.
constexpr size_t kDefaultMaxBufferedBodyBytesPerProcess =;

}  // namespace

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() {}

}  // namespace blink