blob: a9c11c679145bc32f8545ae00ac13aabfcdd8fd7 [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_TIMEZONE_FETCHER_H_
#define DIAGNOSTICS_CROS_HEALTHD_FETCHERS_TIMEZONE_FETCHER_H_
#include "diagnostics/cros_healthd/fetchers/base_fetcher.h"
#include "mojo/cros_healthd_probe.mojom.h"
namespace diagnostics {
// The TimezoneFetcher class is responsible for gathering timezone info.
class TimezoneFetcher final : public BaseFetcher {
public:
using BaseFetcher::BaseFetcher;
// Returns a structure with either the device's timezone data or the error
// that occurred fetching the information.
chromeos::cros_healthd::mojom::TimezoneResultPtr FetchTimezoneInfo();
};
} // namespace diagnostics
#endif // DIAGNOSTICS_CROS_HEALTHD_FETCHERS_TIMEZONE_FETCHER_H_