// media/mojo/mojom/media_metrics_provider.mojom-data-view.h is auto generated by mojom_bindings_generator.py, do not edit

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

// This file defines XDataView for type traits and can be included in
// _mojom_traits.h definitions but otherwise please use .mojom-forward.h,
// .mojom-shared.h or .mojom.h.

// IWYU pragma: private
// IWYU pragma: friend "traits"

#ifndef MEDIA_MOJO_MOJOM_MEDIA_METRICS_PROVIDER_MOJOM_DATA_VIEW_H_
#define MEDIA_MOJO_MOJOM_MEDIA_METRICS_PROVIDER_MOJOM_DATA_VIEW_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>

#include "media/mojo/mojom/media_metrics_provider.mojom-shared-internal.h"
#include "media/mojo/mojom/media_types.mojom-shared.h"
#include "media/mojo/mojom/video_decode_stats_recorder.mojom-shared.h"
#include "media/mojo/mojom/playback_events_recorder.mojom-shared.h"
#include "media/mojo/mojom/watch_time_recorder.mojom-shared.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"


namespace media::mojom {


}  // media::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace media::mojom {


enum class MediaURLScheme : int32_t {
  
  kUnknown = 0,
  
  kMissing = 1,
  
  kHttp = 2,
  
  kHttps = 3,
  
  kFtp = 4,
  
  kChromeExtension = 5,
  
  kJavascript = 6,
  
  kFile = 7,
  
  kBlob = 8,
  
  kData = 9,
  
  kFileSystem = 10,
  
  kChrome = 11,
  
  kContent = 12,
  
  kContentId = 13,
  kMinValue = 0,
  kMaxValue = 13,
};

 std::ostream& operator<<(std::ostream& os, MediaURLScheme value);
inline bool IsKnownEnumValue(MediaURLScheme value) {
  return internal::MediaURLScheme_Data::IsKnownValue(
      static_cast<int32_t>(value));
}

// Returns true if the enum has an infallible conversion from the mojom enum.
consteval bool HasInfallibleConversion(MediaURLScheme) {
  return true;
}
// Interface base classes. They are used for type safety check.
class MediaMetricsProviderInterfaceBase {};

using MediaMetricsProviderPtrDataView =
    mojo::InterfacePtrDataView<MediaMetricsProviderInterfaceBase>;
using MediaMetricsProviderRequestDataView =
    mojo::InterfaceRequestDataView<MediaMetricsProviderInterfaceBase>;
using MediaMetricsProviderAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<MediaMetricsProviderInterfaceBase>;
using MediaMetricsProviderAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<MediaMetricsProviderInterfaceBase>;


}  // media::mojom

#endif  // MEDIA_MOJO_MOJOM_MEDIA_METRICS_PROVIDER_MOJOM_DATA_VIEW_H_