chromium/media/mojo/mojom/status_mojom_traits.h

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

#ifndef MEDIA_MOJO_MOJOM_STATUS_MOJOM_TRAITS_H_
#define MEDIA_MOJO_MOJOM_STATUS_MOJOM_TRAITS_H_

#include <optional>

#include "base/containers/span.h"
#include "base/values.h"
#include "media/base/decoder_status.h"
#include "media/base/encoder_status.h"
#include "media/base/ipc/media_param_traits.h"
#include "media/base/status.h"
#include "media/mojo/mojom/media_types.mojom.h"
#include "mojo/public/cpp/bindings/optional_as_pointer.h"

namespace mojo {

template <>
struct StructTraits<media::mojom::StatusDataDataView,
                    media::internal::StatusData> {};

StructTraits<DataView, media::TypedStatus<StatusEnum>>;

}  // namespace mojo

#endif  // MEDIA_MOJO_MOJOM_STATUS_MOJOM_TRAITS_H_