blob: ac3c73ff17d6b23c4ceda2d469c0e6a61291ba66 [file] [log] [blame]
// Copyright 2018 The Chromium 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 COMPONENTS_DOWNLOAD_DOWNLOADER_IN_PROGRESS_UKM_INFO_H_
#define COMPONENTS_DOWNLOAD_DOWNLOADER_IN_PROGRESS_UKM_INFO_H_
#include <stdint.h>
#include "components/download/public/common/download_source.h"
namespace download {
// Contains information for UKM reporting.
struct UkmInfo {
public:
UkmInfo();
UkmInfo(DownloadSource download_source, int64_t ukm_download_id);
UkmInfo(const UkmInfo& other);
~UkmInfo();
bool operator==(const UkmInfo& other) const;
// The source that triggered the download.
DownloadSource download_source = DownloadSource::UNKNOWN;
// Unique ID that tracks the download UKM entry, where 0 means the
// download_id is not yet initialized.
uint64_t ukm_download_id = 0;
};
} // namespace download
#endif // COMPONENTS_DOWNLOAD_DOWNLOADER_IN_PROGRESS_UKM_INFO_H_