// components/services/quarantine/public/mojom/quarantine.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 COMPONENTS_SERVICES_QUARANTINE_PUBLIC_MOJOM_QUARANTINE_MOJOM_DATA_VIEW_H_
#define COMPONENTS_SERVICES_QUARANTINE_PUBLIC_MOJOM_QUARANTINE_MOJOM_DATA_VIEW_H_

#include <stdint.h>

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

#include "components/services/quarantine/public/mojom/quarantine.mojom-shared-internal.h"
#include "mojo/public/mojom/base/file_path.mojom-shared.h"
#include "sandbox/policy/mojom/sandbox.mojom-shared.h"
#include "url/mojom/url.mojom-shared.h"
#include "url/mojom/origin.mojom-shared.h"


namespace quarantine::mojom {


}  // quarantine::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace quarantine::mojom {


enum class QuarantineFileResult : int32_t {
  
  OK = 0,
  
  ACCESS_DENIED = 1,
  
  BLOCKED_BY_POLICY = 2,
  
  ANNOTATION_FAILED = 3,
  
  FILE_MISSING = 4,
  
  SECURITY_CHECK_FAILED = 5,
  
  VIRUS_INFECTED = 6,
  kMinValue = 0,
  kMaxValue = 6,
};

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

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

using QuarantinePtrDataView =
    mojo::InterfacePtrDataView<QuarantineInterfaceBase>;
using QuarantineRequestDataView =
    mojo::InterfaceRequestDataView<QuarantineInterfaceBase>;
using QuarantineAssociatedPtrInfoDataView =
    mojo::AssociatedInterfacePtrInfoDataView<QuarantineInterfaceBase>;
using QuarantineAssociatedRequestDataView =
    mojo::AssociatedInterfaceRequestDataView<QuarantineInterfaceBase>;


}  // quarantine::mojom

#endif  // COMPONENTS_SERVICES_QUARANTINE_PUBLIC_MOJOM_QUARANTINE_MOJOM_DATA_VIEW_H_