blob: 65784e73e0caf516d512fa1c3290d61501537e9c [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;
ErrorOrString version;
ErrorOrString 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_