chromium/out/Default/gen/third_party/blink/public/mojom/cache_storage/cache_storage.mojom-shared.h

// third_party/blink/public/mojom/cache_storage/cache_storage.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit

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

#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_CACHE_STORAGE_CACHE_STORAGE_MOJOM_SHARED_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_CACHE_STORAGE_CACHE_STORAGE_MOJOM_SHARED_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"

#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"

#include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom-shared-internal.h"
#include "mojo/public/mojom/base/big_buffer.mojom-shared.h"
#include "mojo/public/mojom/base/read_only_buffer.mojom-shared.h"
#include "mojo/public/mojom/base/string16.mojom-shared.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"
#include "third_party/blink/public/mojom/blob/blob.mojom-shared.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_response.mojom-shared.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-shared.h"
#include "url/mojom/url.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"


#include "mojo/public/cpp/bindings/native_enum.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#include "base/component_export.h"




namespace blink::mojom {
class CacheStorageVerboseErrorDataView;

class CacheQueryOptionsDataView;

class MultiCacheQueryOptionsDataView;

class BatchOperationDataView;

class EagerResponseDataView;

class CacheEntryDataView;

class OpenResultDataView;
class MatchResultDataView;
class MatchAllResultDataView;
class GetAllMatchedEntriesResultDataView;
class CacheKeysResultDataView;


}  // blink::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::blink::mojom::CacheStorageVerboseErrorDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::CacheQueryOptionsDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::MultiCacheQueryOptionsDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::BatchOperationDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::EagerResponseDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::CacheEntryDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::OpenResultDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::MatchResultDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::MatchAllResultDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::GetAllMatchedEntriesResultDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::CacheKeysResultDataView> {};

}  // namespace internal
}  // namespace mojo


namespace blinkmojom  // blink::mojom

namespace std {

template <>
struct hash<::blink::mojom::CacheStorageError>
    : public mojo::internal::EnumHashImpl<::blink::mojom::CacheStorageError> {};

template <>
struct hash<::blink::mojom::OperationType>
    : public mojo::internal::EnumHashImpl<::blink::mojom::OperationType> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::blink::mojom::CacheStorageError, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::OperationType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::CacheStorageVerboseErrorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::CacheQueryOptionsDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::MultiCacheQueryOptionsDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::BatchOperationDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::EagerResponseDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::CacheEntryDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::OpenResultDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::MatchResultDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::MatchAllResultDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::GetAllMatchedEntriesResultDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::CacheKeysResultDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace blink::mojom {

inline void CacheStorageVerboseErrorDataView::GetMessageDataView(
    mojo::StringDataView* output) {}




inline void MultiCacheQueryOptionsDataView::GetQueryOptionsDataView(
    CacheQueryOptionsDataView* output) {}
inline void MultiCacheQueryOptionsDataView::GetCacheNameDataView(
    ::mojo_base::mojom::String16DataView* output) {}


inline void BatchOperationDataView::GetRequestDataView(
    ::blink::mojom::FetchAPIRequestDataView* output) {}
inline void BatchOperationDataView::GetResponseDataView(
    ::blink::mojom::FetchAPIResponseDataView* output) {}
inline void BatchOperationDataView::GetMatchOptionsDataView(
    CacheQueryOptionsDataView* output) {}


inline void EagerResponseDataView::GetResponseDataView(
    ::blink::mojom::FetchAPIResponseDataView* output) {}


inline void CacheEntryDataView::GetRequestDataView(
    ::blink::mojom::FetchAPIRequestDataView* output) {}
inline void CacheEntryDataView::GetResponseDataView(
    ::blink::mojom::FetchAPIResponseDataView* output) {}



inline void MatchResultDataView::GetResponseDataView(
    ::blink::mojom::FetchAPIResponseDataView* output) const {}
inline void MatchResultDataView::GetEagerResponseDataView(
    EagerResponseDataView* output) const {}

inline void MatchAllResultDataView::GetResponsesDataView(
    mojo::ArrayDataView<::blink::mojom::FetchAPIResponseDataView>* output) const {}

inline void GetAllMatchedEntriesResultDataView::GetEntriesDataView(
    mojo::ArrayDataView<CacheEntryDataView>* output) const {}

inline void CacheKeysResultDataView::GetKeysDataView(
    mojo::ArrayDataView<::blink::mojom::FetchAPIRequestDataView>* output) const {}


}  // blink::mojom

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::CacheStorageError> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::OperationType> {};

} // namespace perfetto

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_CACHE_STORAGE_CACHE_STORAGE_MOJOM_SHARED_H_