// 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.
#ifndef COMPONENTS_SEGMENTATION_PLATFORM_EMBEDDER_DEFAULT_MODEL_DEVICE_TIER_SEGMENT_H_
#define COMPONENTS_SEGMENTATION_PLATFORM_EMBEDDER_DEFAULT_MODEL_DEVICE_TIER_SEGMENT_H_
#include "components/segmentation_platform/public/model_provider.h"
namespace segmentation_platform {
struct Config;
// Segmentation device tier segment model provider. Provides a default
// model and metadata for the device tier segment target.
class DeviceTierSegment : public DefaultModelProvider {
public:
DeviceTierSegment();
~DeviceTierSegment() override = default;
// Disallow copy/assign.
DeviceTierSegment(const DeviceTierSegment&) = delete;
DeviceTierSegment& operator=(const DeviceTierSegment&) = delete;
static std::unique_ptr<Config> GetConfig();
// ModelProvider implementation.
std::unique_ptr<ModelConfig> GetModelConfig() override;
void ExecuteModelWithInput(const ModelProvider::Request& inputs,
ExecutionCallback callback) override;
};
} // namespace segmentation_platform
#endif // COMPONENTS_SEGMENTATION_PLATFORM_EMBEDDER_DEFAULT_MODEL_DEVICE_TIER_SEGMENT_H_