#include "chrome/browser/ui/webui/downloads/downloads.mojom-shared.h"
#include <ostream>
#include <utility>
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "chrome/browser/ui/webui/downloads/downloads.mojom-params-data.h"
namespace downloads {
namespace mojom {
NOINLINE static const char* DangerousDownloadInterstitialSurveyOptionsToStringHelper(DangerousDownloadInterstitialSurveyOptions value) { … }
std::string DangerousDownloadInterstitialSurveyOptionsToString(DangerousDownloadInterstitialSurveyOptions value) { … }
std::ostream& operator<<(std::ostream& os, DangerousDownloadInterstitialSurveyOptions value) { … }
NOINLINE static const char* DangerTypeToStringHelper(DangerType value) { … }
std::string DangerTypeToString(DangerType value) { … }
std::ostream& operator<<(std::ostream& os, DangerType value) { … }
NOINLINE static const char* TailoredWarningTypeToStringHelper(TailoredWarningType value) { … }
std::string TailoredWarningTypeToString(TailoredWarningType value) { … }
std::ostream& operator<<(std::ostream& os, TailoredWarningType value) { … }
NOINLINE static const char* StateToStringHelper(State value) { … }
std::string StateToString(State value) { … }
std::ostream& operator<<(std::ostream& os, State value) { … }
NOINLINE static const char* SafeBrowsingStateToStringHelper(SafeBrowsingState value) { … }
std::string SafeBrowsingStateToString(SafeBrowsingState value) { … }
std::ostream& operator<<(std::ostream& os, SafeBrowsingState value) { … }
namespace internal {
bool Data_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Data_Data::Data_Data()
: … { … }
bool PageHandlerFactory_CreatePageHandler_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandlerFactory_CreatePageHandler_Params_Data::PageHandlerFactory_CreatePageHandler_Params_Data()
: … { … }
bool PageHandler_GetDownloads_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_GetDownloads_Params_Data::PageHandler_GetDownloads_Params_Data()
: … { … }
bool PageHandler_OpenFileRequiringGesture_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_OpenFileRequiringGesture_Params_Data::PageHandler_OpenFileRequiringGesture_Params_Data()
: … { … }
bool PageHandler_Drag_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_Drag_Params_Data::PageHandler_Drag_Params_Data()
: … { … }
bool PageHandler_SaveSuspiciousRequiringGesture_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_SaveSuspiciousRequiringGesture_Params_Data::PageHandler_SaveSuspiciousRequiringGesture_Params_Data()
: … { … }
bool PageHandler_RecordOpenBypassWarningDialog_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_RecordOpenBypassWarningDialog_Params_Data::PageHandler_RecordOpenBypassWarningDialog_Params_Data()
: … { … }
bool PageHandler_RecordOpenBypassWarningInterstitial_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_RecordOpenBypassWarningInterstitial_Params_Data::PageHandler_RecordOpenBypassWarningInterstitial_Params_Data()
: … { … }
bool PageHandler_RecordOpenSurveyOnDangerousInterstitial_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_RecordOpenSurveyOnDangerousInterstitial_Params_Data::PageHandler_RecordOpenSurveyOnDangerousInterstitial_Params_Data()
: … { … }
bool PageHandler_SaveDangerousFromDialogRequiringGesture_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_SaveDangerousFromDialogRequiringGesture_Params_Data::PageHandler_SaveDangerousFromDialogRequiringGesture_Params_Data()
: … { … }
bool PageHandler_SaveDangerousFromInterstitialNeedGesture_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_SaveDangerousFromInterstitialNeedGesture_Params_Data::PageHandler_SaveDangerousFromInterstitialNeedGesture_Params_Data()
: … { … }
bool PageHandler_RecordCancelBypassWarningDialog_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_RecordCancelBypassWarningDialog_Params_Data::PageHandler_RecordCancelBypassWarningDialog_Params_Data()
: … { … }
bool PageHandler_RecordCancelBypassWarningInterstitial_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_RecordCancelBypassWarningInterstitial_Params_Data::PageHandler_RecordCancelBypassWarningInterstitial_Params_Data()
: … { … }
bool PageHandler_DiscardDangerous_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_DiscardDangerous_Params_Data::PageHandler_DiscardDangerous_Params_Data()
: … { … }
bool PageHandler_RetryDownload_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_RetryDownload_Params_Data::PageHandler_RetryDownload_Params_Data()
: … { … }
bool PageHandler_Show_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_Show_Params_Data::PageHandler_Show_Params_Data()
: … { … }
bool PageHandler_Pause_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_Pause_Params_Data::PageHandler_Pause_Params_Data()
: … { … }
bool PageHandler_Resume_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_Resume_Params_Data::PageHandler_Resume_Params_Data()
: … { … }
bool PageHandler_Remove_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_Remove_Params_Data::PageHandler_Remove_Params_Data()
: … { … }
bool PageHandler_Undo_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_Undo_Params_Data::PageHandler_Undo_Params_Data()
: … { … }
bool PageHandler_Cancel_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_Cancel_Params_Data::PageHandler_Cancel_Params_Data()
: … { … }
bool PageHandler_ClearAll_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_ClearAll_Params_Data::PageHandler_ClearAll_Params_Data()
: … { … }
bool PageHandler_OpenDownloadsFolderRequiringGesture_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_OpenDownloadsFolderRequiringGesture_Params_Data::PageHandler_OpenDownloadsFolderRequiringGesture_Params_Data()
: … { … }
bool PageHandler_OpenEsbSettings_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_OpenEsbSettings_Params_Data::PageHandler_OpenEsbSettings_Params_Data()
: … { … }
bool PageHandler_LogEsbPromotionRowViewed_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_LogEsbPromotionRowViewed_Params_Data::PageHandler_LogEsbPromotionRowViewed_Params_Data()
: … { … }
bool PageHandler_OpenDuringScanningRequiringGesture_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_OpenDuringScanningRequiringGesture_Params_Data::PageHandler_OpenDuringScanningRequiringGesture_Params_Data()
: … { … }
bool PageHandler_ReviewDangerousRequiringGesture_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_ReviewDangerousRequiringGesture_Params_Data::PageHandler_ReviewDangerousRequiringGesture_Params_Data()
: … { … }
bool PageHandler_DeepScan_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_DeepScan_Params_Data::PageHandler_DeepScan_Params_Data()
: … { … }
bool PageHandler_BypassDeepScanRequiringGesture_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_BypassDeepScanRequiringGesture_Params_Data::PageHandler_BypassDeepScanRequiringGesture_Params_Data()
: … { … }
bool PageHandler_IsEligibleForEsbPromo_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_IsEligibleForEsbPromo_Params_Data::PageHandler_IsEligibleForEsbPromo_Params_Data()
: … { … }
bool PageHandler_IsEligibleForEsbPromo_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageHandler_IsEligibleForEsbPromo_ResponseParams_Data::PageHandler_IsEligibleForEsbPromo_ResponseParams_Data()
: … { … }
bool Page_RemoveItem_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Page_RemoveItem_Params_Data::Page_RemoveItem_Params_Data()
: … { … }
bool Page_UpdateItem_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Page_UpdateItem_Params_Data::Page_UpdateItem_Params_Data()
: … { … }
bool Page_InsertItems_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Page_InsertItems_Params_Data::Page_InsertItems_Params_Data()
: … { … }
bool Page_ClearAll_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Page_ClearAll_Params_Data::Page_ClearAll_Params_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::downloads::mojom::DangerousDownloadInterstitialSurveyOptions>::WriteIntoTrace(
perfetto::TracedValue context, ::downloads::mojom::DangerousDownloadInterstitialSurveyOptions value) { … }
}
namespace perfetto {
void TraceFormatTraits<::downloads::mojom::DangerType>::WriteIntoTrace(
perfetto::TracedValue context, ::downloads::mojom::DangerType value) { … }
}
namespace perfetto {
void TraceFormatTraits<::downloads::mojom::TailoredWarningType>::WriteIntoTrace(
perfetto::TracedValue context, ::downloads::mojom::TailoredWarningType value) { … }
}
namespace perfetto {
void TraceFormatTraits<::downloads::mojom::State>::WriteIntoTrace(
perfetto::TracedValue context, ::downloads::mojom::State value) { … }
}
namespace perfetto {
void TraceFormatTraits<::downloads::mojom::SafeBrowsingState>::WriteIntoTrace(
perfetto::TracedValue context, ::downloads::mojom::SafeBrowsingState value) { … }
}