#ifndef COMPONENTS_SERVICES_STORAGE_PUBLIC_MOJOM_SERVICE_WORKER_STORAGE_CONTROL_MOJOM_SHARED_H_
#define COMPONENTS_SERVICES_STORAGE_PUBLIC_MOJOM_SERVICE_WORKER_STORAGE_CONTROL_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 "components/services/storage/public/mojom/service_worker_storage_control.mojom-shared-internal.h"
#include "components/services/storage/public/mojom/service_worker_database.mojom-shared.h"
#include "components/services/storage/public/mojom/storage_policy_update.mojom-shared.h"
#include "mojo/public/mojom/base/big_buffer.mojom-shared.h"
#include "mojo/public/mojom/base/byte_string.mojom-shared.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"
#include "services/network/public/mojom/url_response_head.mojom-shared.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_fetch_handler_type.mojom-shared.h"
#include "third_party/blink/public/mojom/storage_key/storage_key.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"
namespace storage::mojom {
class ServiceWorkerLiveVersionInfoDataView;
class ServiceWorkerFindRegistrationResultDataView;
class ServiceWorkerUserDataDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::storage::mojom::ServiceWorkerLiveVersionInfoDataView> { … };
template <>
struct MojomTypeTraits<::storage::mojom::ServiceWorkerFindRegistrationResultDataView> { … };
template <>
struct MojomTypeTraits<::storage::mojom::ServiceWorkerUserDataDataView> { … };
}
}
namespace storage::mojom {
enum class ServiceWorkerStorageStorageKeyState : int32_t { … };
std::ostream& operator<<(std::ostream& os, ServiceWorkerStorageStorageKeyState value);
inline bool IsKnownEnumValue(ServiceWorkerStorageStorageKeyState value) { … }
class ServiceWorkerLiveVersionRefInterfaceBase { … };
ServiceWorkerLiveVersionRefPtrDataView;
ServiceWorkerLiveVersionRefRequestDataView;
ServiceWorkerLiveVersionRefAssociatedPtrInfoDataView;
ServiceWorkerLiveVersionRefAssociatedRequestDataView;
class ServiceWorkerResourceReaderInterfaceBase { … };
ServiceWorkerResourceReaderPtrDataView;
ServiceWorkerResourceReaderRequestDataView;
ServiceWorkerResourceReaderAssociatedPtrInfoDataView;
ServiceWorkerResourceReaderAssociatedRequestDataView;
class ServiceWorkerResourceWriterInterfaceBase { … };
ServiceWorkerResourceWriterPtrDataView;
ServiceWorkerResourceWriterRequestDataView;
ServiceWorkerResourceWriterAssociatedPtrInfoDataView;
ServiceWorkerResourceWriterAssociatedRequestDataView;
class ServiceWorkerResourceMetadataWriterInterfaceBase { … };
ServiceWorkerResourceMetadataWriterPtrDataView;
ServiceWorkerResourceMetadataWriterRequestDataView;
ServiceWorkerResourceMetadataWriterAssociatedPtrInfoDataView;
ServiceWorkerResourceMetadataWriterAssociatedRequestDataView;
class ServiceWorkerStorageControlInterfaceBase { … };
ServiceWorkerStorageControlPtrDataView;
ServiceWorkerStorageControlRequestDataView;
ServiceWorkerStorageControlAssociatedPtrInfoDataView;
ServiceWorkerStorageControlAssociatedRequestDataView;
class ServiceWorkerLiveVersionInfoDataView { … };
class ServiceWorkerFindRegistrationResultDataView { … };
class ServiceWorkerUserDataDataView { … };
}
namespace std {
template <>
struct hash<::storage::mojom::ServiceWorkerStorageStorageKeyState>
: public mojo::internal::EnumHashImpl<::storage::mojom::ServiceWorkerStorageStorageKeyState> { … };
}
namespace mojo {
namespace internal {
Serializer< ::storage::mojom::ServiceWorkerStorageStorageKeyState, MaybeConstUserType>;
}
namespace internal {
Serializer< ::storage::mojom::ServiceWorkerLiveVersionInfoDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::storage::mojom::ServiceWorkerFindRegistrationResultDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::storage::mojom::ServiceWorkerUserDataDataView, MaybeConstUserType>;
}
}
namespace storage::mojom {
inline void ServiceWorkerLiveVersionInfoDataView::GetPurgeableResourcesDataView(
mojo::ArrayDataView<int64_t>* output) { … }
inline void ServiceWorkerFindRegistrationResultDataView::GetRegistrationDataView(
::storage::mojom::ServiceWorkerRegistrationDataDataView* output) { … }
inline void ServiceWorkerFindRegistrationResultDataView::GetResourcesDataView(
mojo::ArrayDataView<::storage::mojom::ServiceWorkerResourceRecordDataView>* output) { … }
inline void ServiceWorkerUserDataDataView::GetKeyDataView(
mojo::StringDataView* output) { … }
inline void ServiceWorkerUserDataDataView::GetValueDataView(
::mojo_base::mojom::ByteStringDataView* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::storage::mojom::ServiceWorkerStorageStorageKeyState> { … };
}
#endif