chromium/content/browser/network/shared_dictionary_util.cc

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

#include "content/browser/network/shared_dictionary_util.h"

#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/system/sys_info.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "content/public/browser/storage_partition.h"
#include "services/network/public/mojom/network_context.mojom.h"

namespace content {

namespace {

const uint64_t kDefaultCacheMaxSizeForInMemory =;  // 20 MiB;
const uint64_t kMaxCacheMaxSizeForInMemory =;     // 400 MiB;
const uint64_t kDefaultCacheMaxSizeForOnDisk =;   // 300 MiB;
const uint64_t kMaxCacheMaxSizeForOnDisk =;       // 400 MiB;

uint64_t CaliculateCacheMaxSizeForInMemory() {}

uint64_t CaliculateCacheMaxSizeForOnDisk(const base::FilePath& path) {}

}  // namespace

void CalculateAndSetSharedDictionaryCacheMaxSize(
    base::WeakPtr<StoragePartition> storage_partition,
    const base::FilePath& path) {}

}  // namespace content