chromium/services/network/public/cpp/reporting_api_report_mojom_traits.h

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SERVICES_NETWORK_PUBLIC_CPP_REPORTING_API_REPORT_MOJOM_TRAITS_H_
#define SERVICES_NETWORK_PUBLIC_CPP_REPORTING_API_REPORT_MOJOM_TRAITS_H_

#include "base/values.h"
#include "mojo/public/cpp/base/time_mojom_traits.h"
#include "mojo/public/cpp/base/unguessable_token_mojom_traits.h"
#include "mojo/public/cpp/base/values_mojom_traits.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "net/reporting/reporting_report.h"
#include "services/network/public/mojom/reporting_service.mojom-shared.h"
#include "url/mojom/url_gurl_mojom_traits.h"

namespace mojo {

template <>
struct EnumTraits<network::mojom::ReportingApiReportStatus,
                  net::ReportingReport::Status> {};

template <>
struct StructTraits<network::mojom::ReportingApiReportDataView,
                    net::ReportingReport> {};

}  // namespace mojo

#endif  // SERVICES_NETWORK_PUBLIC_CPP_REPORTING_API_REPORT_MOJOM_TRAITS_H_