chromium/out/Default/gen/chrome/browser/ui/webui/omnibox/omnibox.mojom.cc

// chrome/browser/ui/webui/omnibox/omnibox.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 "chrome/browser/ui/webui/omnibox/omnibox.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 "chrome/browser/ui/webui/omnibox/omnibox.mojom-params-data.h"
#include "chrome/browser/ui/webui/omnibox/omnibox.mojom-shared-message-ids.h"

#include "chrome/browser/ui/webui/omnibox/omnibox.mojom-import-headers.h"
#include "chrome/browser/ui/webui/omnibox/omnibox.mojom-test-utils.h"


namespace mojom {
ACMatchClassification::ACMatchClassification()
    :{}

ACMatchClassification::ACMatchClassification(
    int32_t offset_in,
    int32_t style_in)
    :{}

ACMatchClassification::~ACMatchClassification() = default;
size_t ACMatchClassification::Hash(size_t seed) const {}

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

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

DictionaryEntry::DictionaryEntry(
    const std::string& key_in,
    const std::string& value_in)
    :{}

DictionaryEntry::~DictionaryEntry() = default;
size_t DictionaryEntry::Hash(size_t seed) const {}

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

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

Signals::Signals(
    std::optional<int32_t> typed_count_in,
    std::optional<int32_t> visit_count_in,
    std::optional<int64_t> elapsed_time_last_visit_secs_in,
    std::optional<int32_t> shortcut_visit_count_in,
    std::optional<int32_t> shortest_shortcut_len_in,
    std::optional<int64_t> elapsed_time_last_shortcut_visit_sec_in,
    std::optional<bool> is_host_only_in,
    std::optional<int32_t> num_bookmarks_of_url_in,
    std::optional<int32_t> first_bookmark_title_match_position_in,
    std::optional<int32_t> total_bookmark_title_match_length_in,
    std::optional<int32_t> num_input_terms_matched_by_bookmark_title_in,
    std::optional<int32_t> first_url_match_position_in,
    std::optional<int32_t> total_url_match_length_in,
    std::optional<bool> host_match_at_word_boundary_in,
    std::optional<int32_t> total_host_match_length_in,
    std::optional<int32_t> total_path_match_length_in,
    std::optional<int32_t> total_query_or_ref_match_length_in,
    std::optional<int32_t> total_title_match_length_in,
    std::optional<bool> has_non_scheme_www_match_in,
    std::optional<int32_t> num_input_terms_matched_by_title_in,
    std::optional<int32_t> num_input_terms_matched_by_url_in,
    std::optional<int32_t> length_of_url_in,
    std::optional<float> site_engagement_in,
    std::optional<bool> allowed_to_be_default_match_in,
    std::optional<int32_t> search_suggest_relevance_in,
    std::optional<bool> is_search_suggest_entity_in,
    std::optional<bool> is_verbatim_in,
    std::optional<bool> is_navsuggest_in,
    std::optional<bool> is_search_suggest_tail_in,
    std::optional<bool> is_answer_suggest_in,
    std::optional<bool> is_calculator_suggest_in)
    :{}

Signals::~Signals() = default;

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

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

AutocompleteMatch::AutocompleteMatch(
    const std::string& provider_name_in,
    bool provider_done_in,
    int32_t relevance_in,
    bool deletable_in,
    const std::string& fill_into_edit_in,
    const std::string& inline_autocompletion_in,
    const std::string& destination_url_in,
    const std::string& stripped_destination_url_in,
    const std::string& image_in,
    const std::string& contents_in,
    std::vector<ACMatchClassificationPtr> contents_class_in,
    const std::string& description_in,
    std::vector<ACMatchClassificationPtr> description_class_in,
    bool swap_contents_and_description_in,
    const std::string& answer_in,
    const std::string& transition_in,
    bool allowed_to_be_default_match_in,
    const std::string& type_in,
    bool is_search_type_in,
    const std::string& aqs_type_subtypes_in,
    bool has_tab_match_in,
    const std::string& associated_keyword_in,
    const std::string& keyword_in,
    bool starred_in,
    int32_t duplicates_in,
    bool from_previous_in,
    int32_t pedal_id_in,
    SignalsPtr scoring_signals_in,
    std::vector<DictionaryEntryPtr> additional_info_in)
    :{}

AutocompleteMatch::~AutocompleteMatch() = default;

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

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

AutocompleteResultsForProvider::AutocompleteResultsForProvider(
    const std::string& provider_name_in,
    std::vector<AutocompleteMatchPtr> results_in)
    :{}

AutocompleteResultsForProvider::~AutocompleteResultsForProvider() = default;

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

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

OmniboxResponse::OmniboxResponse(
    int32_t cursor_position_in,
    int32_t time_since_omnibox_started_ms_in,
    bool done_in,
    const std::string& type_in,
    const std::string& host_in,
    bool is_typed_host_in,
    const std::string& input_text_in,
    std::vector<AutocompleteMatchPtr> combined_results_in,
    std::vector<AutocompleteResultsForProviderPtr> results_by_provider_in)
    :{}

OmniboxResponse::~OmniboxResponse() = default;

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

bool OmniboxResponse::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char OmniboxPageHandler::Name_[] =;

OmniboxPageHandler::IPCStableHashFunction OmniboxPageHandler::MessageToMethodInfo_(mojo::Message& message) {}


const char* OmniboxPageHandler::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t OmniboxPageHandler::SetClientPage_Sym::IPCStableHash() {}
uint32_t OmniboxPageHandler::StartOmniboxQuery_Sym::IPCStableHash() {}
uint32_t OmniboxPageHandler::GetMlModelVersion_Sym::IPCStableHash() {}
uint32_t OmniboxPageHandler::StartMl_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class OmniboxPageHandler_GetMlModelVersion_ForwardToCallback
    : public mojo::MessageReceiver {};

class OmniboxPageHandler_StartMl_ForwardToCallback
    : public mojo::MessageReceiver {};

OmniboxPageHandlerProxy::OmniboxPageHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void OmniboxPageHandlerProxy::SetClientPage(
    ::mojo::PendingRemote<OmniboxPage> in_page) {}

void OmniboxPageHandlerProxy::StartOmniboxQuery(
    const std::string& in_input_string, bool in_reset_autocomplete_controller, int32_t in_cursor_position, bool in_zero_suggest, bool in_prevent_inline_autocomplete, bool in_prefer_keyword, const std::string& in_current_url, int32_t in_page_classification) {}

void OmniboxPageHandlerProxy::GetMlModelVersion(
    GetMlModelVersionCallback callback) {}

void OmniboxPageHandlerProxy::StartMl(
    SignalsPtr in_signals, StartMlCallback callback) {}
class OmniboxPageHandler_GetMlModelVersion_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool OmniboxPageHandler_GetMlModelVersion_ForwardToCallback::Accept(
    mojo::Message* message) {}

void OmniboxPageHandler_GetMlModelVersion_ProxyToResponder::Run(
    int32_t in_version) {}
class OmniboxPageHandler_StartMl_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool OmniboxPageHandler_StartMl_ForwardToCallback::Accept(
    mojo::Message* message) {}

void OmniboxPageHandler_StartMl_ProxyToResponder::Run(
    float in_score) {}

// static
bool OmniboxPageHandlerStubDispatch::Accept(
    OmniboxPageHandler* impl,
    mojo::Message* message) {}

// static
bool OmniboxPageHandlerStubDispatch::AcceptWithResponder(
    OmniboxPageHandler* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kOmniboxPageHandlerValidationInfo[] =;

bool OmniboxPageHandlerRequestValidator::Accept(mojo::Message* message) {}

bool OmniboxPageHandlerResponseValidator::Accept(mojo::Message* message) {}
const char OmniboxPage::Name_[] =;

OmniboxPage::IPCStableHashFunction OmniboxPage::MessageToMethodInfo_(mojo::Message& message) {}


const char* OmniboxPage::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t OmniboxPage::HandleNewAutocompleteQuery_Sym::IPCStableHash() {}
uint32_t OmniboxPage::HandleNewAutocompleteResponse_Sym::IPCStableHash() {}
uint32_t OmniboxPage::HandleNewMlResponse_Sym::IPCStableHash() {}
uint32_t OmniboxPage::HandleAnswerImageData_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

OmniboxPageProxy::OmniboxPageProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void OmniboxPageProxy::HandleNewAutocompleteQuery(
    AutocompleteControllerType in_autocomplete_controller_type, const std::string& in_input_text) {}

void OmniboxPageProxy::HandleNewAutocompleteResponse(
    AutocompleteControllerType in_autocomplete_controller_type, OmniboxResponsePtr in_response) {}

void OmniboxPageProxy::HandleNewMlResponse(
    AutocompleteControllerType in_autocomplete_controller_type, const std::string& in_input_text, std::vector<AutocompleteMatchPtr> in_matches) {}

void OmniboxPageProxy::HandleAnswerImageData(
    AutocompleteControllerType in_autocomplete_controller_type, const std::string& in_image_url, const std::string& in_image_data) {}

// static
bool OmniboxPageStubDispatch::Accept(
    OmniboxPage* impl,
    mojo::Message* message) {}

// static
bool OmniboxPageStubDispatch::AcceptWithResponder(
    OmniboxPage* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kOmniboxPageValidationInfo[] =;

bool OmniboxPageRequestValidator::Accept(mojo::Message* message) {}



}  // mojom


namespace mojo {


// static
bool StructTraits<::mojom::ACMatchClassification::DataView, ::mojom::ACMatchClassificationPtr>::Read(
    ::mojom::ACMatchClassification::DataView input,
    ::mojom::ACMatchClassificationPtr* output) {}


// static
bool StructTraits<::mojom::DictionaryEntry::DataView, ::mojom::DictionaryEntryPtr>::Read(
    ::mojom::DictionaryEntry::DataView input,
    ::mojom::DictionaryEntryPtr* output) {}


// static
bool StructTraits<::mojom::Signals::DataView, ::mojom::SignalsPtr>::Read(
    ::mojom::Signals::DataView input,
    ::mojom::SignalsPtr* output) {}


// static
bool StructTraits<::mojom::AutocompleteMatch::DataView, ::mojom::AutocompleteMatchPtr>::Read(
    ::mojom::AutocompleteMatch::DataView input,
    ::mojom::AutocompleteMatchPtr* output) {}


// static
bool StructTraits<::mojom::AutocompleteResultsForProvider::DataView, ::mojom::AutocompleteResultsForProviderPtr>::Read(
    ::mojom::AutocompleteResultsForProvider::DataView input,
    ::mojom::AutocompleteResultsForProviderPtr* output) {}


// static
bool StructTraits<::mojom::OmniboxResponse::DataView, ::mojom::OmniboxResponsePtr>::Read(
    ::mojom::OmniboxResponse::DataView input,
    ::mojom::OmniboxResponsePtr* 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 mojom {


void OmniboxPageHandlerInterceptorForTesting::SetClientPage(::mojo::PendingRemote<OmniboxPage> page) {}
void OmniboxPageHandlerInterceptorForTesting::StartOmniboxQuery(const std::string& input_string, bool reset_autocomplete_controller, int32_t cursor_position, bool zero_suggest, bool prevent_inline_autocomplete, bool prefer_keyword, const std::string& current_url, int32_t page_classification) {}
void OmniboxPageHandlerInterceptorForTesting::GetMlModelVersion(GetMlModelVersionCallback callback) {}
void OmniboxPageHandlerInterceptorForTesting::StartMl(SignalsPtr signals, StartMlCallback callback) {}
OmniboxPageHandlerAsyncWaiter::OmniboxPageHandlerAsyncWaiter(
    OmniboxPageHandler* proxy) :{}

OmniboxPageHandlerAsyncWaiter::~OmniboxPageHandlerAsyncWaiter() = default;

void OmniboxPageHandlerAsyncWaiter::GetMlModelVersion(
    int32_t* out_version) {}

int32_t OmniboxPageHandlerAsyncWaiter::GetMlModelVersion(
    ) {}

void OmniboxPageHandlerAsyncWaiter::StartMl(
    SignalsPtr signals, float* out_score) {}

float OmniboxPageHandlerAsyncWaiter::StartMl(
    SignalsPtr signals) {}




void OmniboxPageInterceptorForTesting::HandleNewAutocompleteQuery(AutocompleteControllerType autocomplete_controller_type, const std::string& input_text) {}
void OmniboxPageInterceptorForTesting::HandleNewAutocompleteResponse(AutocompleteControllerType autocomplete_controller_type, OmniboxResponsePtr response) {}
void OmniboxPageInterceptorForTesting::HandleNewMlResponse(AutocompleteControllerType autocomplete_controller_type, const std::string& input_text, std::vector<AutocompleteMatchPtr> matches) {}
void OmniboxPageInterceptorForTesting::HandleAnswerImageData(AutocompleteControllerType autocomplete_controller_type, const std::string& image_url, const std::string& image_data) {}
OmniboxPageAsyncWaiter::OmniboxPageAsyncWaiter(
    OmniboxPage* proxy) :{}

OmniboxPageAsyncWaiter::~OmniboxPageAsyncWaiter() = default;






}  // mojom


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