blob: f712ea0a8edb6fa808d7c48a804e2f110d75827d [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DIAGNOSTICS_WILCO_DTC_SUPPORTD_WILCO_DTC_SUPPORTD_ROUTINE_FACTORY_H_
#define DIAGNOSTICS_WILCO_DTC_SUPPORTD_WILCO_DTC_SUPPORTD_ROUTINE_FACTORY_H_
#include <memory>
#include "diagnostics/routines/diag_routine.h"
#include "wilco_dtc_supportd.pb.h" // NOLINT(build/include)
namespace diagnostics {
// Interface for constructing DiagnosticRoutines from RunRoutineRequests.
class WilcoDtcSupportdRoutineFactory {
public:
virtual ~WilcoDtcSupportdRoutineFactory() = default;
virtual std::unique_ptr<DiagnosticRoutine> CreateRoutine(
const grpc_api::RunRoutineRequest& request) = 0;
};
} // namespace diagnostics
#endif // DIAGNOSTICS_WILCO_DTC_SUPPORTD_WILCO_DTC_SUPPORTD_ROUTINE_FACTORY_H_