/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | validation_util.h | 23 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 …]
|
D | validation_util.cc | 19 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 …]
|
D | message_header_validator.cc | 19 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 …]
|
D | array_internal.h | 128 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 …]
|
D | map_data_internal.h | 49 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()
|
D | control_message_handler.cc | 23 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()
|
D | pipe_control_message_handler.cc | 45 internal::ValidationContext validation_context(message->payload(), in Validate() local 51 message, &validation_context)) { in Validate() 56 message, &validation_context); in Validate()
|
D | control_message_proxy.cc | 26 ValidationContext validation_context(message->payload(), in ValidateControlResponse() local 29 if (!ValidateMessageIsResponse(message, &validation_context)) in ValidateControlResponse() 36 message, &validation_context); in ValidateControlResponse()
|
D | validation_errors.cc | 101 ValidationContext validation_context(nullptr, 0, 0, 0, message, description); in ReportValidationErrorForMessage() local 102 ReportValidationError(&validation_context, error); in ReportValidationErrorForMessage()
|
D | serialization.h | 113 ValidationContext validation_context( 116 if (validate_func(input_buffer, &validation_context)) {
|
D | native_enum_data.h | 20 ValidationContext* validation_context) { return true; } in Validate() argument
|
/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/ |
D | validation_macros.tmpl | 11 {{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))
|
D | struct_definition.tmpl | 7 mojo::internal::ValidationContext* validation_context) { 11 if (!ValidateStructHeaderAndClaimMemory(data, validation_context)) 36 validation_context, 44 validation_context,
|
D | union_definition.tmpl | 8 mojo::internal::ValidationContext* validation_context, 21 data, validation_context)) { 41 validation_context,
|
D | wrapper_class_definition.tmpl | 37 mojo::internal::ValidationContext* validation_context) { 38 return Data_::Validate(data, validation_context);
|
D | wrapper_union_class_definition.tmpl | 72 mojo::internal::ValidationContext* validation_context) { 73 return Data_::Validate(data, validation_context, false);
|
D | interface_definition.tmpl | 529 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,
|
D | enum_macros.tmpl | 73 mojo::internal::ValidationContext* validation_context) { 77 ReportValidationError(validation_context,
|
D | module-shared.cc.tmpl | 16 #include "mojo/public/cpp/bindings/lib/validation_context.h"
|
D | struct_declaration.tmpl | 30 mojo::internal::ValidationContext* validation_context);
|
D | union_declaration.tmpl | 49 mojo::internal::ValidationContext* validation_context,
|
D | module.cc.tmpl | 33 #include "mojo/public/cpp/bindings/lib/validation_context.h"
|
D | wrapper_union_class_declaration.tmpl | 104 mojo::internal::ValidationContext* validation_context);
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | union_unittest.cc | 277 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/ |
D | BUILD.gn | 66 "lib/validation_context.cc", 67 "lib/validation_context.h",
|