blob: d8a3f197323011a0acbaed83da0e9c43c9644ce6 [file] [log] [blame]
// Copyright 2020 The Fuchsia 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 SRC_DEVELOPER_FORENSICS_CRASH_REPORTS_PRODUCT_H_
#define SRC_DEVELOPER_FORENSICS_CRASH_REPORTS_PRODUCT_H_
#include <string>
#include "src/developer/forensics/utils/errors.h"
namespace forensics {
namespace crash_reports {
// Crash server product associated with the crash report.
struct Product {
std::string name;
ErrorOr<std::string> version;
ErrorOr<std::string> channel;
bool IsDefaultPlatformProduct() const;
// Returns a default product for the platform.
static Product DefaultPlatformProduct();
};
bool operator==(const Product& a, const Product& b);
} // namespace crash_reports
} // namespace forensics
#endif // SRC_DEVELOPER_FORENSICS_CRASH_REPORTS_PRODUCT_H_