blob: 6b52543e9ca138c24ba93ae25a335ea9cab69c66 [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 RUNTIME_PROBE_FUNCTIONS_CELLULAR_NETWORK_H_
#define RUNTIME_PROBE_FUNCTIONS_CELLULAR_NETWORK_H_
#include <memory>
#include <string>
#include <base/optional.h>
#include "runtime_probe/function_templates/network.h"
namespace runtime_probe {
class CellularNetworkFunction : public NetworkFunction {
public:
NAME_PROBE_FUNCTION("cellular_network");
static constexpr auto FromKwargsValue =
FromEmptyKwargsValue<CellularNetworkFunction>;
protected:
base::Optional<std::string> GetNetworkType() const override;
};
} // namespace runtime_probe
#endif // RUNTIME_PROBE_FUNCTIONS_CELLULAR_NETWORK_H_