chromium/out/Default/gen/components/services/storage/public/mojom/service_worker_database.mojom.cc

// components/services/storage/public/mojom/service_worker_database.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

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

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "components/services/storage/public/mojom/service_worker_database.mojom.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "components/services/storage/public/mojom/service_worker_database.mojom-params-data.h"
#include "components/services/storage/public/mojom/service_worker_database.mojom-shared-message-ids.h"

#include "components/services/storage/public/mojom/service_worker_database.mojom-import-headers.h"
#include "components/services/storage/public/mojom/service_worker_database.mojom-test-utils.h"
#include "third_party/blink/public/common/service_worker/service_worker_router_rule_mojom_traits.h"


namespace storage::mojom {
ServiceWorkerRegistrationData::ServiceWorkerRegistrationData()
    :{}

ServiceWorkerRegistrationData::ServiceWorkerRegistrationData(
    int64_t registration_id_in,
    const ::GURL& scope_in,
    const ::blink::StorageKey& key_in,
    const ::GURL& script_in,
    ::blink::mojom::ScriptType script_type_in,
    ::blink::mojom::ServiceWorkerUpdateViaCache update_via_cache_in,
    int64_t version_id_in,
    bool is_active_in,
    ::blink::mojom::ServiceWorkerFetchHandlerType fetch_handler_type_in,
    ::base::Time last_update_check_in,
    ::base::Time script_response_time_in,
    const std::optional<base::flat_map<std::string, std::vector<std::string>>>& origin_trial_tokens_in,
    ::blink::mojom::NavigationPreloadStatePtr navigation_preload_state_in,
    std::vector<::blink::mojom::WebFeature> used_features_in,
    int64_t resources_total_size_bytes_in,
    ::blink::mojom::PolicyContainerPoliciesPtr policy_container_policies_in,
    ::blink::mojom::AncestorFrameType ancestor_frame_type_in,
    const std::optional<::blink::ServiceWorkerRouterRules>& router_rules_in,
    bool has_hid_event_handlers_in,
    bool has_usb_event_handlers_in)
    :{}

ServiceWorkerRegistrationData::~ServiceWorkerRegistrationData() = default;

void ServiceWorkerRegistrationData::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool ServiceWorkerRegistrationData::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
ServiceWorkerResourceRecord::ServiceWorkerResourceRecord()
    :{}

ServiceWorkerResourceRecord::ServiceWorkerResourceRecord(
    int64_t resource_id_in,
    const ::GURL& url_in,
    int64_t size_bytes_in,
    const std::optional<std::string>& sha256_checksum_in)
    :{}

ServiceWorkerResourceRecord::~ServiceWorkerResourceRecord() = default;

void ServiceWorkerResourceRecord::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool ServiceWorkerResourceRecord::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}


}  // storage::mojom


namespace mojo {


// static
bool StructTraits<::storage::mojom::ServiceWorkerRegistrationData::DataView, ::storage::mojom::ServiceWorkerRegistrationDataPtr>::Read(
    ::storage::mojom::ServiceWorkerRegistrationData::DataView input,
    ::storage::mojom::ServiceWorkerRegistrationDataPtr* output) {}


// static
bool StructTraits<::storage::mojom::ServiceWorkerResourceRecord::DataView, ::storage::mojom::ServiceWorkerResourceRecordPtr>::Read(
    ::storage::mojom::ServiceWorkerResourceRecord::DataView input,
    ::storage::mojom::ServiceWorkerResourceRecordPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace storage::mojom {




}  // storage::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif