blob: 02669e0d61ca50592e0ed330ec6e86b08f7b436b [file] [log] [blame]
// 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_AGENT_ANNOTATIONS_H_
#define SRC_DEVELOPER_FEEDBACK_AGENT_ANNOTATIONS_H_
#include <fuchsia/feedback/cpp/fidl.h>
#include <lib/fit/promise.h>
#include <set>
#include <string>
#include <vector>
namespace fuchsia {
namespace feedback {
// Returns annotations useful to attach in feedback reports (crash or user feedback).
//
// Only annotations which keys are in the |allowlist| will be returned.
std::vector<fit::promise<Annotation>> GetAnnotations(const std::set<std::string>& allowlist);
} // namespace feedback
} // namespace fuchsia
#endif // SRC_DEVELOPER_FEEDBACK_AGENT_ANNOTATIONS_H_