chromium/components/download/public/common/download_danger_type.h

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_DANGER_TYPE_H_
#define COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_DANGER_TYPE_H_

#include "components/download/public/common/download_export.h"

namespace download {

// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
// Update enum names in
// tools/metrics/histograms/metadata/download/enums.xml, and variants
// in tools/metrics/histograms/metadata/download/histograms.xml on additions.
enum DownloadDangerType {};

// Converts DownloadDangerType into their corresponding string, used only
// for metrics.
COMPONENTS_DOWNLOAD_EXPORT
const char* GetDownloadDangerTypeString(const DownloadDangerType& danger_type);

}  // namespace download

#endif  // COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_DANGER_TYPE_H_