#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/continuous_search/common/public/mojom/continuous_search.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/continuous_search/common/public/mojom/continuous_search.mojom-params-data.h"
#include "components/continuous_search/common/public/mojom/continuous_search.mojom-shared-message-ids.h"
#include "components/continuous_search/common/public/mojom/continuous_search.mojom-import-headers.h"
#include "components/continuous_search/common/public/mojom/continuous_search.mojom-test-utils.h"
namespace continuous_search::mojom {
SearchResult::SearchResult()
: … { … }
SearchResult::SearchResult(
const ::GURL& link_in,
const ::std::u16string& title_in)
: … { … }
SearchResult::~SearchResult() = default;
void SearchResult::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SearchResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ResultGroup::ResultGroup()
: … { … }
ResultGroup::ResultGroup(
ResultType type_in,
std::vector<SearchResultPtr> results_in)
: … { … }
ResultGroup::~ResultGroup() = default;
void ResultGroup::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ResultGroup::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CategoryResults::CategoryResults()
: … { … }
CategoryResults::CategoryResults(
const ::GURL& document_url_in,
Category category_type_in,
std::vector<ResultGroupPtr> groups_in)
: … { … }
CategoryResults::~CategoryResults() = default;
void CategoryResults::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool CategoryResults::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char SearchResultExtractor::Name_[] = …;
SearchResultExtractor::IPCStableHashFunction SearchResultExtractor::MessageToMethodInfo_(mojo::Message& message) { … }
const char* SearchResultExtractor::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SearchResultExtractor::ExtractCurrentSearchResults_Sym::IPCStableHash() { … }
# endif
class SearchResultExtractor_ExtractCurrentSearchResults_ForwardToCallback
: public mojo::MessageReceiver { … };
SearchResultExtractorProxy::SearchResultExtractorProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void SearchResultExtractorProxy::ExtractCurrentSearchResults(
const std::vector<ResultType>& in_result_types, ExtractCurrentSearchResultsCallback callback) { … }
class SearchResultExtractor_ExtractCurrentSearchResults_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool SearchResultExtractor_ExtractCurrentSearchResults_ForwardToCallback::Accept(
mojo::Message* message) { … }
void SearchResultExtractor_ExtractCurrentSearchResults_ProxyToResponder::Run(
SearchResultExtractor::Status in_status, CategoryResultsPtr in_results) { … }
bool SearchResultExtractorStubDispatch::Accept(
SearchResultExtractor* impl,
mojo::Message* message) { … }
bool SearchResultExtractorStubDispatch::AcceptWithResponder(
SearchResultExtractor* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kSearchResultExtractorValidationInfo[] = …;
bool SearchResultExtractorRequestValidator::Accept(mojo::Message* message) { … }
bool SearchResultExtractorResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::continuous_search::mojom::SearchResult::DataView, ::continuous_search::mojom::SearchResultPtr>::Read(
::continuous_search::mojom::SearchResult::DataView input,
::continuous_search::mojom::SearchResultPtr* output) { … }
bool StructTraits<::continuous_search::mojom::ResultGroup::DataView, ::continuous_search::mojom::ResultGroupPtr>::Read(
::continuous_search::mojom::ResultGroup::DataView input,
::continuous_search::mojom::ResultGroupPtr* output) { … }
bool StructTraits<::continuous_search::mojom::CategoryResults::DataView, ::continuous_search::mojom::CategoryResultsPtr>::Read(
::continuous_search::mojom::CategoryResults::DataView input,
::continuous_search::mojom::CategoryResultsPtr* output) { … }
}
namespace continuous_search::mojom {
void SearchResultExtractorInterceptorForTesting::ExtractCurrentSearchResults(const std::vector<ResultType>& result_types, ExtractCurrentSearchResultsCallback callback) { … }
SearchResultExtractorAsyncWaiter::SearchResultExtractorAsyncWaiter(
SearchResultExtractor* proxy) : … { … }
SearchResultExtractorAsyncWaiter::~SearchResultExtractorAsyncWaiter() = default;
void SearchResultExtractorAsyncWaiter::ExtractCurrentSearchResults(
const std::vector<ResultType>& result_types, SearchResultExtractor::Status* out_status, CategoryResultsPtr* out_results) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif