#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 = …;
const uint64_t kMaxCacheMaxSizeForInMemory = …;
const uint64_t kDefaultCacheMaxSizeForOnDisk = …;
const uint64_t kMaxCacheMaxSizeForOnDisk = …;
uint64_t CaliculateCacheMaxSizeForInMemory() { … }
uint64_t CaliculateCacheMaxSizeForOnDisk(const base::FilePath& path) { … }
}
void CalculateAndSetSharedDictionaryCacheMaxSize(
base::WeakPtr<StoragePartition> storage_partition,
const base::FilePath& path) { … }
}