Home
last modified time | relevance | path

Searched refs:validation_context (Results 1 – 25 of 26) sorted by relevance

12

/external/libchrome/mojo/public/cpp/bindings/lib/
Dvalidation_util.h23 void ReportNonNullableValidationError(ValidationContext* validation_context,
41 ValidationContext* validation_context) { in ValidatePointer() argument
44 ReportValidationError(validation_context, VALIDATION_ERROR_ILLEGAL_POINTER); in ValidatePointer()
58 ValidationContext* validation_context);
67 ValidationContext* validation_context);
73 ValidationContext* validation_context);
79 ValidationContext* validation_context);
84 ValidationContext* validation_context);
89 ValidationContext* validation_context) { in ValidateMessagePayload() argument
90 return ParamsType::Validate(message->payload(), validation_context); in ValidateMessagePayload()
[all …]
Dvalidation_util.cc19 void ReportNonNullableValidationError(ValidationContext* validation_context, in ReportNonNullableValidationError() argument
27 ReportValidationError(validation_context, error, error_message.c_str()); in ReportNonNullableValidationError()
31 ValidationContext* validation_context) { in ValidateStructHeaderAndClaimMemory() argument
33 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory()
37 if (!validation_context->IsValidRange(data, sizeof(StructHeader))) { in ValidateStructHeaderAndClaimMemory()
38 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory()
46 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory()
51 if (!validation_context->ClaimMemory(data, header->num_bytes)) { in ValidateStructHeaderAndClaimMemory()
52 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory()
62 ValidationContext* validation_context) { in ValidateNonInlinedUnionHeaderAndClaimMemory() argument
[all …]
Dmessage_header_validator.cc19 internal::ValidationContext* validation_context) { in IsValidMessageHeader() argument
39 validation_context, in IsValidMessageHeader()
51 validation_context, in IsValidMessageHeader()
59 validation_context, in IsValidMessageHeader()
77 validation_context) || in IsValidMessageHeader()
78 !internal::ValidatePointer(header_v2->payload, validation_context) || in IsValidMessageHeader()
79 !validation_context->ClaimMemory(header_v2->payload.Get(), 1)) { in IsValidMessageHeader()
85 validation_context, &validate_params)) { in IsValidMessageHeader()
95 validation_context, in IsValidMessageHeader()
125 internal::ValidationContext validation_context( in Accept() local
[all …]
Darray_internal.h128 ValidationContext* validation_context,
140 if (!validate_params->validate_enum_func(elements[i], validation_context))
153 ValidationContext* validation_context,
167 validation_context, kError,
175 if (!ValidateHandleOrInterface(elements[i], validation_context))
188 ValidationContext* validation_context,
193 validation_context,
200 if (!ValidateCaller<T>::Run(elements[i], validation_context,
214 ValidationContext* validation_context,
219 return ValidateStruct(data, validation_context);
[all …]
Dmap_data_internal.h49 ValidationContext* validation_context, in Validate() argument
54 if (!ValidateStructHeaderAndClaimMemory(data, validation_context)) in Validate()
60 ReportValidationError(validation_context, in Validate()
65 if (!ValidatePointerNonNullable(object->keys, 0, validation_context) || in Validate()
66 !ValidateContainer(object->keys, validation_context, in Validate()
71 if (!ValidatePointerNonNullable(object->values, 1, validation_context) || in Validate()
72 !ValidateContainer(object->values, validation_context, in Validate()
78 ReportValidationError(validation_context, in Validate()
Dcontrol_message_handler.cc23 ValidationContext validation_context(message->payload(), in ValidateControlRequestWithResponse() local
26 if (!ValidateMessageIsRequestExpectingResponse(message, &validation_context)) in ValidateControlRequestWithResponse()
33 message, &validation_context); in ValidateControlRequestWithResponse()
39 ValidationContext validation_context(message->payload(), in ValidateControlRequestWithoutResponse() local
42 if (!ValidateMessageIsRequestWithoutResponse(message, &validation_context)) in ValidateControlRequestWithoutResponse()
48 &validation_context) && in ValidateControlRequestWithoutResponse()
51 message, &validation_context); in ValidateControlRequestWithoutResponse()
Dpipe_control_message_handler.cc45 internal::ValidationContext validation_context(message->payload(), in Validate() local
51 message, &validation_context)) { in Validate()
56 message, &validation_context); in Validate()
Dcontrol_message_proxy.cc26 ValidationContext validation_context(message->payload(), in ValidateControlResponse() local
29 if (!ValidateMessageIsResponse(message, &validation_context)) in ValidateControlResponse()
36 message, &validation_context); in ValidateControlResponse()
Dvalidation_errors.cc101 ValidationContext validation_context(nullptr, 0, 0, 0, message, description); in ReportValidationErrorForMessage() local
102 ReportValidationError(&validation_context, error); in ReportValidationErrorForMessage()
Dserialization.h113 ValidationContext validation_context(
116 if (validate_func(input_buffer, &validation_context)) {
Dnative_enum_data.h20 ValidationContext* validation_context) { return true; } in Validate() argument
/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/
Dvalidation_macros.tmpl11 {{field_expr}}, {{field_index}}, validation_context)) {
16 {{field_expr}}, {{field_index}}, validation_context)) {
24 if (!mojo::internal::ValidateContainer({{field_expr}}, validation_context,
29 if (!mojo::internal::ValidateStruct({{field_expr}}, validation_context))
33 if (!mojo::internal::ValidateInlinedUnion({{field_expr}}, validation_context))
37 validation_context))
53 {{field_expr}}, {{field_index}}, validation_context)) {
58 validation_context)) {
67 ::Validate({{field_expr}}, validation_context))
Dstruct_definition.tmpl7 mojo::internal::ValidationContext* validation_context) {
11 if (!ValidateStructHeaderAndClaimMemory(data, validation_context))
36 validation_context,
44 validation_context,
Dunion_definition.tmpl8 mojo::internal::ValidationContext* validation_context,
21 data, validation_context)) {
41 validation_context,
Dwrapper_class_definition.tmpl37 mojo::internal::ValidationContext* validation_context) {
38 return Data_::Validate(data, validation_context);
Dwrapper_union_class_definition.tmpl72 mojo::internal::ValidationContext* validation_context) {
73 return Data_::Validate(data, validation_context, false);
Dinterface_definition.tmpl529 mojo::internal::ValidationContext validation_context(
539 message, &validation_context)) {
544 message, &validation_context)) {
550 message, &validation_context)) {
562 &validation_context,
575 mojo::internal::ValidationContext validation_context(
580 if (!mojo::internal::ValidateMessageIsResponse(message, &validation_context))
587 message, &validation_context)) {
599 &validation_context,
Denum_macros.tmpl73 mojo::internal::ValidationContext* validation_context) {
77 ReportValidationError(validation_context,
Dmodule-shared.cc.tmpl16 #include "mojo/public/cpp/bindings/lib/validation_context.h"
Dstruct_declaration.tmpl30 mojo::internal::ValidationContext* validation_context);
Dunion_declaration.tmpl49 mojo::internal::ValidationContext* validation_context,
Dmodule.cc.tmpl33 #include "mojo/public/cpp/bindings/lib/validation_context.h"
Dwrapper_union_class_declaration.tmpl104 mojo::internal::ValidationContext* validation_context);
/external/libchrome/mojo/public/cpp/bindings/tests/
Dunion_unittest.cc277 mojo::internal::ValidationContext validation_context( in TEST() local
280 internal::PodUnion_Data::Validate(data, &validation_context, false)); in TEST()
322 mojo::internal::ValidationContext validation_context(buf, 0, 0, 0); in TEST() local
324 buf, &validation_context, false)); in TEST()
332 mojo::internal::ValidationContext validation_context( in TEST() local
335 &validation_context, false)); in TEST()
344 mojo::internal::ValidationContext validation_context( in TEST() local
347 &validation_context, false)); in TEST()
359 mojo::internal::ValidationContext validation_context( in TEST() local
362 internal::PodUnion_Data::Validate(data, &validation_context, false)); in TEST()
[all …]
/external/libchrome/mojo/public/cpp/bindings/
DBUILD.gn66 "lib/validation_context.cc",
67 "lib/validation_context.h",

12