#include "services/network/prefetch_cache.h"
#include <ostream>
#include "base/check.h"
#include "base/check_op.h"
#include "base/logging.h"
#include "base/types/pass_key.h"
#include "net/base/network_isolation_key.h"
#include "services/network/prefetch_url_loader_client.h"
#include "services/network/public/cpp/features.h"
namespace network {
namespace {
size_t GetMaxSize() { … }
}
PrefetchCache::PrefetchCache() : … { … }
PrefetchCache::~PrefetchCache() = default;
PrefetchURLLoaderClient* PrefetchCache::Emplace(
const ResourceRequest& request) { … }
PrefetchURLLoaderClient* PrefetchCache::Lookup(
const net::NetworkIsolationKey& nik,
const GURL& url) { … }
void PrefetchCache::Consume(PrefetchURLLoaderClient* client) { … }
void PrefetchCache::Erase(PrefetchURLLoaderClient* client) { … }
void PrefetchCache::OnTimer() { … }
void PrefetchCache::EraseOldest() { … }
void PrefetchCache::RemoveFromCache(PrefetchURLLoaderClient* client) { … }
void PrefetchCache::EraseFromStorage(PrefetchURLLoaderClient* client) { … }
void PrefetchCache::StartTimer(base::TimeTicks now) { … }
}