blob: 7f1a57fae65ab76ac14099c99a5e9fd34438b7c3 [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_FETCHERS_NETWORK_FETCHER_H_
#define DIAGNOSTICS_CROS_HEALTHD_FETCHERS_NETWORK_FETCHER_H_
#include <base/callback_forward.h>
#include "diagnostics/cros_healthd/fetchers/base_fetcher.h"
#include "mojo/cros_healthd_probe.mojom-forward.h"
namespace diagnostics {
// Responsible for gathering network information that is reported by
// cros_healthd.
class NetworkFetcher final : public BaseFetcher {
public:
using FetchNetworkInfoCallback =
base::OnceCallback<void(chromeos::cros_healthd::mojom::NetworkResultPtr)>;
using BaseFetcher::BaseFetcher;
void FetchNetworkInfo(FetchNetworkInfoCallback callback);
};
} // namespace diagnostics
#endif // DIAGNOSTICS_CROS_HEALTHD_FETCHERS_NETWORK_FETCHER_H_