blob: 5a7707eaca3d43021f7bf8c98b005c9a6f0fece7 [file] [log] [blame]
// Copyright 2020 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_CROS_HEALTHD_MOJO_ADAPTER_CROS_HEALTHD_MOJO_ADAPTER_DELEGATE_H_
#define DIAGNOSTICS_CROS_HEALTHD_MOJO_ADAPTER_CROS_HEALTHD_MOJO_ADAPTER_DELEGATE_H_
#include <base/optional.h>
#include <mojo/public/cpp/bindings/pending_remote.h>
#include "mojo/cros_healthd.mojom.h"
namespace diagnostics {
// Responsible for bootstrapping a mojo connection to cros_healthd.
class CrosHealthdMojoAdapterDelegate {
public:
virtual ~CrosHealthdMojoAdapterDelegate() = default;
// Bootstraps a mojo connection to cros_healthd, then returns one end of the
// bound pipe.
virtual base::Optional<mojo::PendingRemote<
chromeos::cros_healthd::mojom::CrosHealthdServiceFactory>>
GetCrosHealthdServiceFactory() = 0;
};
} // namespace diagnostics
#endif // DIAGNOSTICS_CROS_HEALTHD_MOJO_ADAPTER_CROS_HEALTHD_MOJO_ADAPTER_DELEGATE_H_