blob: 25dd9a8d9460c53ad6ecaa4e1c63cdf37e186241 [file]
// Copyright 2019 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_FEEDBACK_FEEDBACK_AGENT_ANNOTATIONS_BUILD_INFO_PROVIDER_H_
#define SRC_DEVELOPER_FEEDBACK_FEEDBACK_AGENT_ANNOTATIONS_BUILD_INFO_PROVIDER_H_
#include <fuchsia/feedback/cpp/fidl.h>
#include <lib/fit/promise.h>
#include <set>
#include <string>
#include <vector>
#include "src/developer/feedback/feedback_agent/annotations/annotation_provider.h"
namespace feedback {
// Collect the annotations related to the device's build info.
class BuildInfoProvider : public AnnotationProvider {
public:
explicit BuildInfoProvider(const std::set<std::string>& annotations_to_get);
static std::set<std::string> GetSupportedAnnotations();
fit::promise<std::vector<fuchsia::feedback::Annotation>> GetAnnotations() override;
private:
const std::set<std::string> annotations_to_get_;
};
} // namespace feedback
#endif // SRC_DEVELOPER_FEEDBACK_FEEDBACK_AGENT_ANNOTATIONS_BUILD_INFO_PROVIDER_H_