chromium/components/safe_browsing/core/browser/hashprefix_realtime/hash_realtime_cache.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 "components/safe_browsing/core/browser/hashprefix_realtime/hash_realtime_cache.h"

#include "base/metrics/histogram_functions.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "components/safe_browsing/core/common/hashprefix_realtime/hash_realtime_utils.h"
#include "components/safe_browsing/core/common/proto/safebrowsingv5.pb.h"

namespace safe_browsing {

namespace {

void LogCacheHitOrMiss(bool is_hit) {}
void LogInitialCacheDurationOnSet(base::TimeDelta cache_duration) {}
void LogRemainingCacheDurationOnHit(base::Time expiration_time) {}

}  // namespace

HashRealTimeCache::HashRealTimeCache() = default;

HashRealTimeCache::~HashRealTimeCache() = default;

HashRealTimeCache::FullHashesAndDetails::FullHashesAndDetails() = default;
HashRealTimeCache::FullHashesAndDetails::~FullHashesAndDetails() = default;

std::unordered_map<std::string, std::vector<V5::FullHash>>
HashRealTimeCache::SearchCache(
    const std::set<std::string>& hash_prefixes) const {}

void HashRealTimeCache::CacheSearchHashesResponse(
    const std::vector<std::string>& requested_hash_prefixes,
    const std::vector<V5::FullHash>& response_full_hashes,
    const V5::Duration& cache_duration) {}

void HashRealTimeCache::ClearExpiredResults() {}

}  // namespace safe_browsing