chromium/components/segmentation_platform/internal/database/cached_result_writer.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/segmentation_platform/internal/database/cached_result_writer.h"

#include "base/logging.h"
#include "base/time/time.h"
#include "components/segmentation_platform/internal/logging.h"
#include "components/segmentation_platform/internal/metadata/metadata_utils.h"
#include "components/segmentation_platform/internal/post_processor/post_processor.h"
#include "components/segmentation_platform/internal/stats.h"
#include "components/segmentation_platform/public/config.h"

namespace segmentation_platform {

CachedResultWriter::CachedResultWriter(ClientResultPrefs* prefs,
                                       base::Clock* clock)
    :{}

CachedResultWriter::~CachedResultWriter() = default;

bool CachedResultWriter::UpdatePrefsIfExpired(
    const Config* config,
    proto::ClientResult client_result,
    const PlatformOptions& platform_options) {}

void CachedResultWriter::MarkResultAsUsed(const Config* config) {}

void CachedResultWriter::CacheModelExecution(
    const Config* config,
    const proto::PredictionResult& result) {}

bool CachedResultWriter::IsPrefUpdateRequiredForClient(
    const Config* config,
    const proto::ClientResult& new_client_result,
    const PlatformOptions& platform_options) {}

void CachedResultWriter::UpdateNewClientResultToPrefs(
    const Config* config,
    proto::ClientResult client_result) {}

}  // namespace segmentation_platform