#ifndef COMPONENTS_SERVICES_STORAGE_PUBLIC_MOJOM_SERVICE_WORKER_DATABASE_MOJOM_SHARED_H_
#define COMPONENTS_SERVICES_STORAGE_PUBLIC_MOJOM_SERVICE_WORKER_DATABASE_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_database.mojom-shared-internal.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"
#include "services/network/public/mojom/cross_origin_embedder_policy.mojom-shared.h"
#include "third_party/blink/public/mojom/script/script_type.mojom-shared.h"
#include "third_party/blink/public/mojom/frame/policy_container.mojom-shared.h"
#include "third_party/blink/public/mojom/service_worker/navigation_preload_state.mojom-shared.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_ancestor_frame_type.mojom-shared.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_database.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/service_worker/service_worker_registration_options.mojom-shared.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom-shared.h"
#include "third_party/blink/public/mojom/storage_key/storage_key.mojom-shared.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-shared.h"
#include "url/mojom/url.mojom-shared.h"
namespace storage::mojom {
class ServiceWorkerRegistrationDataDataView;
class ServiceWorkerResourceRecordDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::storage::mojom::ServiceWorkerRegistrationDataDataView> { … };
template <>
struct MojomTypeTraits<::storage::mojom::ServiceWorkerResourceRecordDataView> { … };
}
}
namespace storage::mojom {
enum class ServiceWorkerDatabaseStatus : int32_t { … };
std::ostream& operator<<(std::ostream& os, ServiceWorkerDatabaseStatus value);
inline bool IsKnownEnumValue(ServiceWorkerDatabaseStatus value) { … }
class ServiceWorkerRegistrationDataDataView { … };
class ServiceWorkerResourceRecordDataView { … };
}
namespace std {
template <>
struct hash<::storage::mojom::ServiceWorkerDatabaseStatus>
: public mojo::internal::EnumHashImpl<::storage::mojom::ServiceWorkerDatabaseStatus> { … };
}
namespace mojo {
namespace internal {
Serializer< ::storage::mojom::ServiceWorkerDatabaseStatus, MaybeConstUserType>;
}
namespace internal {
Serializer< ::storage::mojom::ServiceWorkerRegistrationDataDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::storage::mojom::ServiceWorkerResourceRecordDataView, MaybeConstUserType>;
}
}
namespace storage::mojom {
inline void ServiceWorkerRegistrationDataDataView::GetScopeDataView(
::url::mojom::UrlDataView* output) { … }
inline void ServiceWorkerRegistrationDataDataView::GetKeyDataView(
::blink::mojom::StorageKeyDataView* output) { … }
inline void ServiceWorkerRegistrationDataDataView::GetScriptDataView(
::url::mojom::UrlDataView* output) { … }
inline void ServiceWorkerRegistrationDataDataView::GetLastUpdateCheckDataView(
::mojo_base::mojom::TimeDataView* output) { … }
inline void ServiceWorkerRegistrationDataDataView::GetScriptResponseTimeDataView(
::mojo_base::mojom::TimeDataView* output) { … }
inline void ServiceWorkerRegistrationDataDataView::GetOriginTrialTokensDataView(
mojo::MapDataView<mojo::StringDataView, mojo::ArrayDataView<mojo::StringDataView>>* output) { … }
inline void ServiceWorkerRegistrationDataDataView::GetNavigationPreloadStateDataView(
::blink::mojom::NavigationPreloadStateDataView* output) { … }
inline void ServiceWorkerRegistrationDataDataView::GetUsedFeaturesDataView(
mojo::ArrayDataView<::blink::mojom::WebFeature>* output) { … }
inline void ServiceWorkerRegistrationDataDataView::GetPolicyContainerPoliciesDataView(
::blink::mojom::PolicyContainerPoliciesDataView* output) { … }
inline void ServiceWorkerRegistrationDataDataView::GetRouterRulesDataView(
::blink::mojom::ServiceWorkerRouterRulesDataView* output) { … }
inline void ServiceWorkerResourceRecordDataView::GetUrlDataView(
::url::mojom::UrlDataView* output) { … }
inline void ServiceWorkerResourceRecordDataView::GetSha256ChecksumDataView(
mojo::StringDataView* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::storage::mojom::ServiceWorkerDatabaseStatus> { … };
}
#endif