#ifndef SERVICES_NETWORK_PUBLIC_CPP_CONNECTION_ALLOWLIST_H_
#define SERVICES_NETWORK_PUBLIC_CPP_CONNECTION_ALLOWLIST_H_
#include <optional>
#include <string>
#include <vector>
#include "base/component_export.h"
#include "services/network/public/mojom/connection_allowlist.mojom-shared.h"
namespace network {
struct COMPONENT_EXPORT(NETWORK_CPP_CONNECTION_ALLOWLIST) ConnectionAllowlist {
ConnectionAllowlist();
~ConnectionAllowlist();
ConnectionAllowlist(ConnectionAllowlist&&);
ConnectionAllowlist& operator=(ConnectionAllowlist&&);
ConnectionAllowlist(const ConnectionAllowlist&);
ConnectionAllowlist& operator=(const ConnectionAllowlist&);
bool operator==(const ConnectionAllowlist&) const;
std::vector<std::string> allowlist;
std::optional<std::string> reporting_endpoint;
std::vector<mojom::ConnectionAllowlistIssue> issues;
};
struct COMPONENT_EXPORT(NETWORK_CPP_CONNECTION_ALLOWLIST) ConnectionAllowlists {
ConnectionAllowlists();
~ConnectionAllowlists();
ConnectionAllowlists(ConnectionAllowlists&&);
ConnectionAllowlists& operator=(ConnectionAllowlists&&);
ConnectionAllowlists(const ConnectionAllowlists&);
ConnectionAllowlists& operator=(const ConnectionAllowlists&);
bool operator==(const ConnectionAllowlists&) const;
std::optional<ConnectionAllowlist> enforced;
std::optional<ConnectionAllowlist> report_only;
};
}
#endif