chromium/out/Default/gen/extensions/common/mojom/code_injection.mojom.cc

// extensions/common/mojom/code_injection.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 "extensions/common/mojom/code_injection.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 "extensions/common/mojom/code_injection.mojom-params-data.h"
#include "extensions/common/mojom/code_injection.mojom-shared-message-ids.h"

#include "extensions/common/mojom/code_injection.mojom-import-headers.h"
#include "extensions/common/mojom/code_injection.mojom-test-utils.h"


namespace extensions::mojom {
JSSource::JSSource()
    :{}

JSSource::JSSource(
    const std::string& code_in,
    const ::GURL& script_url_in)
    :{}

JSSource::~JSSource() = default;

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

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

CSSSource::CSSSource(
    const std::string& code_in,
    const std::optional<std::string>& key_in)
    :{}

CSSSource::~CSSSource() = default;

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

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

JSInjection::JSInjection(
    std::vector<JSSourcePtr> sources_in,
    ::extensions::mojom::ExecutionWorld world_in,
    const std::optional<std::string>& world_id_in,
    ::blink::mojom::WantResultOption wants_result_in,
    ::blink::mojom::UserActivationOption user_gesture_in,
    ::blink::mojom::PromiseResultOption wait_for_promise_in)
    :{}

JSInjection::~JSInjection() = default;

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

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

CSSInjection::CSSInjection(
    std::vector<CSSSourcePtr> sources_in,
    ::extensions::mojom::CSSOrigin css_origin_in,
    CSSInjection::Operation operation_in)
    :{}

CSSInjection::~CSSInjection() = default;

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

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

CodeInjection::~CodeInjection() {}


void CodeInjection::set_css(
    CSSInjectionPtr css) {}
void CodeInjection::set_js(
    JSInjectionPtr js) {}

void CodeInjection::DestroyActive() {}

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


}  // extensions::mojom


namespace mojo {


// static
bool StructTraits<::extensions::mojom::JSSource::DataView, ::extensions::mojom::JSSourcePtr>::Read(
    ::extensions::mojom::JSSource::DataView input,
    ::extensions::mojom::JSSourcePtr* output) {}


// static
bool StructTraits<::extensions::mojom::CSSSource::DataView, ::extensions::mojom::CSSSourcePtr>::Read(
    ::extensions::mojom::CSSSource::DataView input,
    ::extensions::mojom::CSSSourcePtr* output) {}


// static
bool StructTraits<::extensions::mojom::JSInjection::DataView, ::extensions::mojom::JSInjectionPtr>::Read(
    ::extensions::mojom::JSInjection::DataView input,
    ::extensions::mojom::JSInjectionPtr* output) {}


// static
bool StructTraits<::extensions::mojom::CSSInjection::DataView, ::extensions::mojom::CSSInjectionPtr>::Read(
    ::extensions::mojom::CSSInjection::DataView input,
    ::extensions::mojom::CSSInjectionPtr* output) {}

// static
bool UnionTraits<::extensions::mojom::CodeInjection::DataView, ::extensions::mojom::CodeInjectionPtr>::Read(
    ::extensions::mojom::CodeInjection::DataView input,
    ::extensions::mojom::CodeInjectionPtr* 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 extensions::mojom {




}  // extensions::mojom


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