#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/content_settings/core/common/content_settings.mojom-blink.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/content_settings/core/common/content_settings.mojom-params-data.h"
#include "components/content_settings/core/common/content_settings.mojom-shared-message-ids.h"
#include "components/content_settings/core/common/content_settings.mojom-blink-import-headers.h"
#include "components/content_settings/core/common/content_settings.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace content_settings::mojom::blink {
PatternParts::PatternParts()
: … { … }
PatternParts::PatternParts(
const WTF::String& scheme_in,
bool is_scheme_wildcard_in,
const WTF::String& host_in,
bool has_domain_wildcard_in,
const WTF::String& port_in,
bool is_port_wildcard_in,
const WTF::String& path_in,
bool is_path_wildcard_in)
: … { … }
PatternParts::~PatternParts() = default;
size_t PatternParts::Hash(size_t seed) const { … }
void PatternParts::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PatternParts::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ContentSettingsPattern::ContentSettingsPattern()
: … { … }
ContentSettingsPattern::ContentSettingsPattern(
PatternPartsPtr parts_in,
bool is_valid_in)
: … { … }
ContentSettingsPattern::~ContentSettingsPattern() = default;
size_t ContentSettingsPattern::Hash(size_t seed) const { … }
void ContentSettingsPattern::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ContentSettingsPattern::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RuleMetaData::RuleMetaData()
: … { … }
RuleMetaData::RuleMetaData(
::base::Time last_modified_in,
::base::Time last_used_in,
::base::Time last_visited_in,
::base::Time expiration_in,
::content_settings::mojom::blink::SessionModel session_model_in,
::base::TimeDelta lifetime_in,
::content_settings::mojom::blink::TpcdMetadataRuleSource tpcd_metadata_rule_source_in,
::content_settings::mojom::blink::TpcdMetadataCohort tpcd_metadata_cohort_in,
bool decided_by_related_website_sets_in)
: … { … }
RuleMetaData::~RuleMetaData() = default;
void RuleMetaData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RuleMetaData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ContentSettingPatternSource::ContentSettingPatternSource()
: … { … }
ContentSettingPatternSource::ContentSettingPatternSource(
ContentSettingsPatternPtr primary_pattern_in,
ContentSettingsPatternPtr secondary_pattern_in,
::base::Value setting_value_in,
RuleMetaDataPtr metadata_in,
::content_settings::mojom::blink::ProviderType source_in,
bool incognito_in)
: … { … }
ContentSettingPatternSource::~ContentSettingPatternSource() = default;
void ContentSettingPatternSource::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ContentSettingPatternSource::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RendererContentSettingRules::RendererContentSettingRules()
: … { … }
RendererContentSettingRules::RendererContentSettingRules(
WTF::Vector<ContentSettingPatternSourcePtr> mixed_content_rules_in)
: … { … }
RendererContentSettingRules::~RendererContentSettingRules() = default;
void RendererContentSettingRules::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RendererContentSettingRules::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::content_settings::mojom::blink::PatternParts::DataView, ::content_settings::mojom::blink::PatternPartsPtr>::Read(
::content_settings::mojom::blink::PatternParts::DataView input,
::content_settings::mojom::blink::PatternPartsPtr* output) { … }
bool StructTraits<::content_settings::mojom::blink::ContentSettingsPattern::DataView, ::content_settings::mojom::blink::ContentSettingsPatternPtr>::Read(
::content_settings::mojom::blink::ContentSettingsPattern::DataView input,
::content_settings::mojom::blink::ContentSettingsPatternPtr* output) { … }
bool StructTraits<::content_settings::mojom::blink::RuleMetaData::DataView, ::content_settings::mojom::blink::RuleMetaDataPtr>::Read(
::content_settings::mojom::blink::RuleMetaData::DataView input,
::content_settings::mojom::blink::RuleMetaDataPtr* output) { … }
bool StructTraits<::content_settings::mojom::blink::ContentSettingPatternSource::DataView, ::content_settings::mojom::blink::ContentSettingPatternSourcePtr>::Read(
::content_settings::mojom::blink::ContentSettingPatternSource::DataView input,
::content_settings::mojom::blink::ContentSettingPatternSourcePtr* output) { … }
bool StructTraits<::content_settings::mojom::blink::RendererContentSettingRules::DataView, ::content_settings::mojom::blink::RendererContentSettingRulesPtr>::Read(
::content_settings::mojom::blink::RendererContentSettingRules::DataView input,
::content_settings::mojom::blink::RendererContentSettingRulesPtr* output) { … }
}
namespace content_settings::mojom::blink {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif