From da11133fa64a17af7a10d501dae42ce6ba83fe63 Mon Sep 17 00:00:00 2001 From: yzshen Date: Tue, 1 Dec 2015 15:50:39 -0800 Subject: Mojo C++ bindings: associated interface pointers/requests validation This CL also moves some validation code from code generation template to C++, in order to improve readability. BUG=546067 Review URL: https://codereview.chromium.org/1486573003 Cr-Commit-Position: refs/heads/master@{#362548} --- mojo/public/cpp/bindings/lib/validation_errors.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mojo/public/cpp/bindings/lib/validation_errors.h') diff --git a/mojo/public/cpp/bindings/lib/validation_errors.h b/mojo/public/cpp/bindings/lib/validation_errors.h index 1d15bc9..d1abfdd 100644 --- a/mojo/public/cpp/bindings/lib/validation_errors.h +++ b/mojo/public/cpp/bindings/lib/validation_errors.h @@ -39,6 +39,10 @@ enum ValidationError { VALIDATION_ERROR_ILLEGAL_POINTER, // A non-nullable pointer field is set to null. VALIDATION_ERROR_UNEXPECTED_NULL_POINTER, + // An interface ID is illegal. + VALIDATION_ERROR_ILLEGAL_INTERFACE_ID, + // A non-nullable interface ID field is set to invalid. + VALIDATION_ERROR_UNEXPECTED_INVALID_INTERFACE_ID, // |flags| in the message header is invalid. The flags are either // inconsistent with one another, inconsistent with other parts of the // message, or unexpected for the message receiver. For example the -- cgit v1.1